Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
5
test3/initializeNDArray/initializeNDArray.js
Normal file
5
test3/initializeNDArray/initializeNDArray.js
Normal file
@ -0,0 +1,5 @@
|
||||
const initializeNDArray = (val, ...args) =>
|
||||
args.length === 0
|
||||
? val
|
||||
: Array.from({ length: args[0] }).map(() => initializeNDArray(val, ...args.slice(1)));
|
||||
module.exports = initializeNDArray;
|
||||
8
test3/initializeNDArray/initializeNDArray.test.js
Normal file
8
test3/initializeNDArray/initializeNDArray.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const initializeNDArray = require('./initializeNDArray.js');
|
||||
|
||||
test('Testing initializeNDArray', () => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
expect(typeof initializeNDArray === 'function').toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user