Spaces:
Runtime error
Runtime error
Download src/common/errors/engine-not-supported.error.spec.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-not-supported.error.spec.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/common/errors/engine-not-supported.error.spec.ts
-
curl -L -o engine-not-supported.error.spec.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-not-supported.error.spec.ts
449 Bytes
| 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'); | |
| }); | |
| }); | |