Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | var chai = require('chai'); |
||
2 | var assert = chai.assert; |
||
3 | var expect = chai.expect; |
||
4 | var vf = require('../src/scripts/vanillafilter'); |
||
5 | |||
6 | describe('VanillaFilter', function() { |
||
7 | it('should create a VanillaFilter instance with an "options" property', function() { |
||
8 | var VF = new VanillaFilter(); |
||
|
|||
9 | |||
10 | assert.isObject(VF, 'VanillaFilter instance is an object'); |
||
11 | assert.isObject(VF.options, 'VanillaFilter.options is an object'); |
||
12 | }); |
||
13 | }); |
||
14 | |||
15 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.