style.spec.js 484 B

1234567891011121314151617181920212223242526272829
  1. 'use strict'
  2. const standard = require('mocha-standard')
  3. describe('code style', function () {
  4. this.timeout(5000)
  5. it('should conform to standard', standard.files([
  6. 'lib/**/*.js',
  7. '*.js'
  8. ]))
  9. })
  10. describe('code style in tests', function () {
  11. this.timeout(5000)
  12. it('should conform to standard', standard.files([
  13. 'test/**/*.js'
  14. ], {
  15. globals: [
  16. 'describe',
  17. 'it',
  18. 'before',
  19. 'beforeEach',
  20. 'after',
  21. 'afterEach'
  22. ]
  23. }))
  24. })