Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin

noeticpenguin/Gruntfile.js

Last active Aug 29, 2015
Embed
What would you like to do?
gruntfile
module.exports = function(grunt) {
grunt.initConfig({
jasmine: {
proposalPlus: {
// Include paths for both the local user, if we're in dev mode, as well as share mode
src: ['pp_js' + process.env.USER + '.resource/pp_js/**/*.js',
'pp_ngApp_' + process.env.USER + '.resource/pp_ngApp/**/*.js',
'pp_js/pp_js/**/*.js',
'pp_ngApp/pp_ngApp/**/*.js'
],
options: {
// Include path for Jasmine spec files, including both dev and share path versions.
specs: ['pp_test_' + process.env.USER + '.resource/pp_test/unit/**/*.js',
'pp_test/pp_test/unit/**/*.js'
]
}
}
}
});
// Register tasks.
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-env');
// Default task.
grunt.registerTask('default', 'jasmine');
grunt.registerTask('foo', 'Test Env vars', function() {
grunt.log.warn(process.env.USER);
});
};
✘  ~/Documents/mmProjects/CCO - C2/resource-bundles  ± release/0.2 ●  grunt jasmine
Running "jasmine:proposalPlus" (jasmine) task
Testing jasmine specs via PhantomJS
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/application.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.controller') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/controllers/FlightTabsCtrl.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.controller') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/controllers/flightDetailCtrl.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.controller') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/controllers/gridViewCtrl.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.controller') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/controllers/pricingCtrl.js:13
>> TypeError: 'undefined' is not an object (evaluating 'app.controller') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/controllers/proposalPlusCtrl.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/bootstrapDatepicker.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/cellNavigation.js:8
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/chosen.js:5
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/chosen.js:106
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/exampleDirective.js:16
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/lazyLoadedTabs.js:3
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/loading.js:1
>> ReferenceError: Can't find variable: jQuery at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/ngGrid.js:2
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/ngTable-0.3.2.min.js:9
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/ngTable.min.js:9
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/ngToggle.min.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/optionsDisabled.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.directive') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/directives/strap.bsDatepicker.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.filter') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/filters/autolink.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.filter') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/filters/dynamic.js:8
>> TypeError: 'undefined' is not an object (evaluating 'app.filter') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/filters/noFractionCurrency.js:3
>> TypeError: 'undefined' is not an object (evaluating 'app.filter') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/filters/percentage.js:1
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/Restangular.min.js:9
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/Restangular.min.js:1256
>> TypeError: 'undefined' is not an object (evaluating 'angular.module') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/angularCache.js:13
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/angularCache.js:1196
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/cartService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/demographicsService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/flightService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/marketsService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/mediaTypeService.js:1
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/ngForce.js:16
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/ngForce.min.js:1
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/ngLocalStorage.js:4
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/ngLocalStorage.js:324
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/pdmService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/ppUtils.js:1
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/safeApply.js:22
>> ReferenceError: Can't find variable: angular at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/safeApply.min.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/searchService.js:1
>> TypeError: 'undefined' is not an object (evaluating 'app.factory') at
>> ../../CCO%20-%20C2/resource-bundles/pp_ngApp_kpoorman.resource/pp_ngApp/services/verticalService.js:1
The controller for the Proposal Plus pricing entry page
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/controllers/pricingCtrlSpec.js (line 11) (1)
The 'dynamic' filter (used to format values in pricing entry page)
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/controllers/pricingCtrlSpec.js (line 130) (1)
pricingCtrl
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/controllers/pricingCtrlSpecAlex.js (line 92) (1)
The proposal controller (proposalController.js)
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/controllers/proposalControllerSpec.js (line 9) (1)
the breadcrumb service
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/services/breadcrumbServiceSpec.js (line 21) (1)
flightService
X encountered a declaration exception
ReferenceError: Can't find variable: module in file:///Users/kpoorman/Documents/mmProjects/CCO%20-%20C2/resource-bundles/pp_test_kpoorman.resource/pp_test/unit/services/flightServiceSpec.js (line 258) (1)
6 specs in 0.011s.
>> 6 failures
Warning: Task "jasmine:proposalPlus" failed. Use --force to continue.
Aborted due to warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.