@mccann-hub/create-typescript-template
Version:
CLI tool to initialize a TypeScript project with dual CommonJS and ESM support, path aliases, unit testing, and linting for NPM publishing.
19 lines (16 loc) • 481 B
text/typescript
import assert from 'assert';
import { hello } from '../src/index';
describe('Array', function () {
describe('#indexOf()', function () {
it('should return -1 when the value is not present', function () {
assert.equal([1, 2, 3].indexOf(4), -1);
});
});
});
describe('Main', function () {
describe('#hello', function () {
it('should return "hello world!" when no value is passed', function () {
assert.equal(hello(), 'Hello world!');
});
});
});