1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00
hack-chat-main/test/text.test.js

19 lines
490 B
JavaScript
Raw Permalink Normal View History

2023-12-22 15:14:03 +08:00
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;
});
});