Skip to content

Commit

Permalink
refactor: implement simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JustPowerful committed Oct 23, 2024
1 parent e47a643 commit a2bd237
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/blah.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { sum } from '../src';
import { createAutoloader, createAutoloaderMiddleware } from '..';

describe('blah', () => {
describe('route-autoloader', () => {
it('works', () => {
expect(sum(1, 1)).toEqual(2);
expect(createAutoloader).toBeDefined();
expect(createAutoloader).toBeInstanceOf(Function);
});
});

describe('middleware-autoloader', () => {
it('works', () => {
expect(createAutoloaderMiddleware).toBeDefined();
expect(createAutoloaderMiddleware).toBeInstanceOf(Function);
});
});

0 comments on commit a2bd237

Please sign in to comment.