diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-14 22:39:18 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-14 22:39:18 -0800 |
| commit | 666674327f009e9b1013218fc384f193b64c6997 (patch) | |
| tree | acebae7b425b469584eb0a5bec396899c2739501 /tst/http_status.test.ts | |
| parent | 594ce452693a71b501d3aff3f35ef3732c06c341 (diff) | |
| download | pengueno-666674327f009e9b1013218fc384f193b64c6997.tar.gz pengueno-666674327f009e9b1013218fc384f193b64c6997.zip | |
Adds unit tests
Diffstat (limited to 'tst/http_status.test.ts')
| -rw-r--r-- | tst/http_status.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tst/http_status.test.ts b/tst/http_status.test.ts new file mode 100644 index 0000000..09d6790 --- /dev/null +++ b/tst/http_status.test.ts @@ -0,0 +1,9 @@ +import { HttpStatusCodes } from '../lib/index'; + +describe('server/http/status', () => { + test('contains common status codes', () => { + expect(HttpStatusCodes[200]).toBe('OK'); + expect(HttpStatusCodes[404]).toBe('Not Found'); + expect(HttpStatusCodes[500]).toBe('Internal Server Error'); + }); +}); |
