|
|
@@ -27,7 +27,7 @@ describe('Example', () => { |
|
|
|
it('draws a card from default set', async () => { |
|
|
|
const response = await server |
|
|
|
.inject() |
|
|
|
.post('/') |
|
|
|
.post('/api/draw') |
|
|
|
.headers({ |
|
|
|
Accept: 'text/plain', |
|
|
|
}); |
|
|
@@ -39,7 +39,7 @@ describe('Example', () => { |
|
|
|
it('draws a card from custom sets', async () => { |
|
|
|
const response = await server |
|
|
|
.inject() |
|
|
|
.post('/') |
|
|
|
.post('/api/draw') |
|
|
|
.query({ |
|
|
|
cards: ['default', 'text:hello|world'], |
|
|
|
}) |
|
|
|