mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
19 lines
490 B
JavaScript
19 lines
490 B
JavaScript
|
import { expect } from 'chai';
|
||
|
import mocks from './mockImports.js';
|
||
|
|
||
|
const modulePath = '../commands/utility/_Text.js';
|
||
|
let importedModule;
|
||
|
|
||
|
describe('Checking _Text module', () => {
|
||
|
// module meta data
|
||
|
it('should be importable', async () => {
|
||
|
importedModule = await import(modulePath);
|
||
|
expect(importedModule).to.not.be.a('string');
|
||
|
});
|
||
|
|
||
|
it('should return null if not text', () => {
|
||
|
const resp = importedModule.parseText([]);
|
||
|
|
||
|
expect(resp).to.be.null;
|
||
|
});
|
||
|
});
|