switched nedb to nedb-promises (#37)
* breaking change: switched to nedb-promises * Linting * some dev dependencies * more tests * updated package version * bug fixing * changed isNaN to isString * (fix) args[0]
This commit is contained in:
17
__tests__/commands/List.js
Normal file
17
__tests__/commands/List.js
Normal file
@ -0,0 +1,17 @@
|
||||
require('module-alias/register');
|
||||
// const { List } = require('@Commands/List');
|
||||
const rewire = require('rewire');
|
||||
|
||||
const reWireUtils = rewire('@Commands/List');
|
||||
// const getStats = reWireUtils.__get__('getStats');
|
||||
const getAttribute = reWireUtils.__get__('getAttribute');
|
||||
|
||||
it('should return an attribute object', () => {
|
||||
expect(getAttribute({ id: 'mut', level: 9 })).toEqual(
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
Name: expect.any(String),
|
||||
Level: expect.any(Number),
|
||||
})
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user