I'm building unit tests in jasmine based on examples I've seen with AngularJS. The examples, such as this unit test in the Angular PhoneCat tutorial, use the global form of 'use strict'
. However, JSHint complains that I should
Use the function form of "use strict".
I know why 'use strict'
is important, and I think I understand why you should use the function form of 'use strict'
instead of the global form in your source files. However, in jasmine test files, is it OK to use the global form of 'use strict'
?
If so, can I suppress these JSHint warnings for my jasmine test files only?