baseHook.spec.ts 430 B

1234567891011121314
  1. import {QUERY_TYPE} from "~/types/enums";
  2. import BaseHook from "~/services/dataDeleter/hook/baseHook";
  3. import {DataDeleterArgs} from "~/types/interfaces";
  4. class DummyHook extends BaseHook{}
  5. describe('support()', () =>{
  6. it('should trow an error if support doesnt defined in DummyHook', () =>{
  7. const args:DataDeleterArgs = {
  8. type: QUERY_TYPE.DEFAULT,
  9. }
  10. expect(() => DummyHook.support(args)).toThrow()
  11. })
  12. })