15 lines
427 B
JavaScript
15 lines
427 B
JavaScript
const expect = require('expect');
|
|
const {pullAtValue} = require('./_30s.js');
|
|
|
|
test('pullAtValue is a Function', () => {
|
|
expect(pullAtValue).toBeInstanceOf(Function);
|
|
});
|
|
let myArray = ['a', 'b', 'c', 'd'];
|
|
let pulled = pullAtValue(myArray, ['b', 'd']);
|
|
test('Pulls the specified values', () => {
|
|
expect(myArray).toEqual(['a', 'c']);
|
|
});
|
|
test('Pulls the specified values', () => {
|
|
expect(pulled).toEqual(['b', 'd']);
|
|
});
|