(dev) remove rewire, add babel-plugin-rewire. (#44)
* removed rewire. now using babel-rewire instead * implemented more tests * changed some eslint params * linting * linting * coverage on getChant Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
This commit is contained in:
12
__tests__/commands/Roll.js
Normal file
12
__tests__/commands/Roll.js
Normal file
@ -0,0 +1,12 @@
|
||||
require('module-alias/register');
|
||||
require('babel-plugin-rewire');
|
||||
|
||||
const command = require('@Commands/Roll');
|
||||
//const exec = command.__get__('exec');
|
||||
describe('roll command', () => {
|
||||
const message = { reply: str => str };
|
||||
it('should not return anything without correct arguments', () => {
|
||||
const args = ['1'];
|
||||
expect(command.exec(message, args)).resolves.toBeUndefined();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user