aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-05-31 19:11:57 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-06-03 17:47:44 -0700
commit0f5555b92915b175a685a24ade9276d170ae37f5 (patch)
tree78ae08b1aaa0263d012ca4037028a21728179bd6 /test
parent926bebb122ba4226b65088bd0d2f964c8d9e9f8c (diff)
downloadchessh-bot-0f5555b92915b175a685a24ade9276d170ae37f5.tar.gz
chessh-bot-0f5555b92915b175a685a24ade9276d170ae37f5.zip
move to docker compose, fuck vercel
remove other unnecesaary stuff
Diffstat (limited to 'test')
-rw-r--r--test/api.test.ts25
-rw-r--r--test/app.test.ts25
2 files changed, 0 insertions, 50 deletions
diff --git a/test/api.test.ts b/test/api.test.ts
deleted file mode 100644
index 2e94e6d..0000000
--- a/test/api.test.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import request from 'supertest';
-
-import app from '../src/app';
-
-describe('GET /api/v1', () => {
- it('responds with a json message', (done) => {
- request(app)
- .get('/api/v1')
- .set('Accept', 'application/json')
- .expect('Content-Type', /json/)
- .expect(200, {
- message: 'API - 👋🌎🌍🌏',
- }, done);
- });
-});
-
-describe('GET /api/v1/emojis', () => {
- it('responds with a json message', (done) => {
- request(app)
- .get('/api/v1/emojis')
- .set('Accept', 'application/json')
- .expect('Content-Type', /json/)
- .expect(200, ['😀', '😳', '🙄'], done);
- });
-});
diff --git a/test/app.test.ts b/test/app.test.ts
deleted file mode 100644
index c9f37c2..0000000
--- a/test/app.test.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import request from 'supertest';
-
-import app from '../src/app';
-
-describe('app', () => {
- it('responds with a not found message', (done) => {
- request(app)
- .get('/what-is-this-even')
- .set('Accept', 'application/json')
- .expect('Content-Type', /json/)
- .expect(404, done);
- });
-});
-
-describe('GET /', () => {
- it('responds with a json message', (done) => {
- request(app)
- .get('/')
- .set('Accept', 'application/json')
- .expect('Content-Type', /json/)
- .expect(200, {
- message: '🦄🌈✨👋🌎🌍🌏✨🌈🦄',
- }, done);
- });
-});