UNPKG

@point-hub/papi

Version:

Point API Framework

12 lines (8 loc) 254 B
import { expect, it, spyOn } from 'bun:test' import NewCommand from './index.command' it('test command', () => { const newCommand = new NewCommand() const spy = spyOn(newCommand, 'handle') newCommand.handle() expect(spy).toHaveBeenCalled() })