generator-gulp-angular
generator-gulp-angular copied to clipboard
How to - start uni test with decribe?
Hello,
i write small test 'calculator'. Add name 'calculator.spec.js' but when i start 'gulp server' or 'gulp test' testing not include to test app?
In console i need see 'calculator', but console don't show this alert. Why?
My code:
(function() { 'use strict'; describe('calculator', function() { it('1 + 1 should equal 2', function() { expect(1 + 1).toBe(1); }); }); });
When i write in console gulp test
`all files 45.14 kB [19:10:12] Finished 'scripts' after 1.79 s [19:10:12] Starting 'test'... 30 05 2016 19:10:12.692:WARN [watcher]: Pattern "/Users/c9/Documents/EE/Ui/mdc-ui/view/src/*/.mock.js" does not match any file. 30 05 2016 19:10:32.762:WARN [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
[19:10:32] 'test' errored after 21 s
[19:10:32] Error: Failed 1 tests.
at /Users/c9/Documents/EE/Ui/mdc-ui/view/gulp/unit-tests.js:41:22
at removeAllListeners (/Users/c9/Documents/EE/Ui/mdc-ui/view/node_modules/karma/lib/server.js:336:7)
at Server.