forked from geolba/tethys.backend
- add test to ci pipeline ci.yml
This commit is contained in:
parent
a48a2d9704
commit
578c4180f4
7 changed files with 205 additions and 186 deletions
|
@ -1,8 +1,8 @@
|
|||
import { test } from '@japa/runner'
|
||||
import { test } from '@japa/runner';
|
||||
|
||||
test('display welcome page', async ({ client }) => {
|
||||
const response = await client.get('/')
|
||||
const response = await client.get('/');
|
||||
|
||||
response.assertStatus(200)
|
||||
response.assertTextIncludes('<h1 class="title"> It Works! </h1>')
|
||||
})
|
||||
response.assertStatus(200);
|
||||
response.assertTextIncludes('<h1 class="title"> It Works! </h1>');
|
||||
});
|
||||
|
|
8
tests/functional/home.spec.ts
Normal file
8
tests/functional/home.spec.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { test } from '@japa/runner';
|
||||
|
||||
test.group('Home', () => {
|
||||
test('make sure 2 + 2 is 4', async ({ assert }) => {
|
||||
assert.equal(2 + 2, 4);
|
||||
});
|
||||
});
|
||||
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue