File size: 449 Bytes
46252cd
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { EngineNotSupportedError } from './engine-not-supported.error';

describe('EngineNotSupportedError', () => {
  it('carries HTTP 501 so NestJS returns Not Implemented without a custom filter', () => {
    expect(new EngineNotSupportedError('getGroups').getStatus()).toBe(501);
  });

  it('names the unsupported operation in the message', () => {
    expect(new EngineNotSupportedError('getGroups').message).toContain('getGroups');
  });
});