Files
30-seconds-of-code/test/pull/pull.test.js
Angelos Chalaris 5e2add03cb Codacy issue fixes
2018-06-18 21:18:53 +03:00

12 lines
306 B
JavaScript

const expect = require('expect');
const pull = require('./pull.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']);
});