Updated the test system
This commit is contained in:
11
test/pull.test.js
Normal file
11
test/pull.test.js
Normal file
@ -0,0 +1,11 @@
|
||||
const expect = require('expect');
|
||||
const {pull} = require('./_30s.js');
|
||||
|
||||
test('pull is a Function', () => {
|
||||
expect(pull).toBeInstanceOf(Function);
|
||||
});
|
||||
let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
|
||||
pull(myArray, 'a', 'c');
|
||||
test('Pulls the specified values', () => {
|
||||
expect(myArray).toEqual(['b', 'b']);
|
||||
});
|
||||
Reference in New Issue
Block a user