catarse/catarse.js

View on GitHub
legacy/spec/lib/mocks/recommended-projects.mock.js

Summary

Maintainability
A
1 hr
Test Coverage
beforeAll(function(){
    RecommendedProjectsMockery = function(){
        return [
            {
                user_id: 1,
                project_id: 1,
                count: 3
            },
            {
                user_id: 1,
                project_id: 1,
                count: 3
            },
            {
                user_id: 1,
                project_id: 1,
                count: 3
            }
        ];
    };
    jasmine.Ajax.stubRequest(new RegExp("("+apiPrefix + '\/recommended_projects)'+'(.*)')).andReturn({
      'responseText' : JSON.stringify(RecommendedProjectsMockery())
    });
});