GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( ab0def...d8abc9 )
by Dennis
02:09
created

index.tests.js ➔ describe(ꞌVanillaFilterꞌ)   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 33

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 2 Features 2
Metric Value
cc 1
c 2
b 2
f 2
nc 1
nop 0
dl 0
loc 33
rs 8.8571

4 Functions

Rating   Name   Duplication   Size   Complexity  
A index.tests.js ➔ ... ➔ it(ꞌshould have a triggerFilter functionꞌ) 0 5 1
A index.tests.js ➔ ... ➔ it(ꞌshould have a bind functionꞌ) 0 5 1
A index.tests.js ➔ ... ➔ it(ꞌshould override user input optionsꞌ) 0 10 1
A index.tests.js ➔ ... ➔ it(ꞌshould create a VanillaFilter instance with an "options" propertyꞌ) 0 6 1
1
var chai = require('chai');
2
var sinon = require('sinon');
3
var sinonChai = require('sinon-chai');
4
chai.should();
5
chai.use(sinonChai);
6
7
var assert = chai.assert;
8
var expect = chai.expect;
9
var vf = require('../src/scripts/vanillafilter');
10
11
describe('VanillaFilter', function() {
12
	it('should create a VanillaFilter instance with an "options" property', function() {
13
		var VFoptionsObject = new VanillaFilter();
0 ignored issues
show
Bug introduced by
The variable VanillaFilter seems to be never declared. If this is a global, consider adding a /** global: VanillaFilter */ comment.

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.

Loading history...
14
15
		assert.isObject(VFoptionsObject, 'VanillaFilter instance is an object');
16
		assert.isObject(VFoptionsObject.options, 'VanillaFilter.options is an object');
17
	});
18
19
	it('should have a bind function', function() {
20
		var VFbindFn = new VanillaFilter();
0 ignored issues
show
Bug introduced by
The variable VanillaFilter seems to be never declared. If this is a global, consider adding a /** global: VanillaFilter */ comment.

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.

Loading history...
21
22
		assert.isFunction(VFbindFn.bind, 'VanillaFilter.bind exists and is a function');
23
	});
24
25
	it('should have a triggerFilter function', function() {
26
		var VFtriggerFilterFn = new VanillaFilter();
0 ignored issues
show
Bug introduced by
The variable VanillaFilter seems to be never declared. If this is a global, consider adding a /** global: VanillaFilter */ comment.

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.

Loading history...
27
28
		assert.isFunction(VFtriggerFilterFn.triggerFilter, 'VanillaFilter.triggerFilter exists and is a function');
29
	});
30
31
	it('should override user input options', function() {
32
		var VFdefaultOptions = new VanillaFilter();
0 ignored issues
show
Bug introduced by
The variable VanillaFilter seems to be never declared. If this is a global, consider adding a /** global: VanillaFilter */ comment.

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.

Loading history...
33
		var defaultOptions = VFdefaultOptions.options;
34
		var VFcustomOptions = new VanillaFilter({
35
			'vanillaDisplayType': 'flex'
36
		});
37
		var customOptions = VFcustomOptions.options;
38
39
		expect(defaultOptions).to.not.equal(customOptions);
40
	});
41
42
43
});
44