mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 23:15:28 +02:00
fix unit test
This commit is contained in:
parent
ef38b30ad1
commit
a48e9474be
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ describe('Aliases REST: ', () => {
|
||||||
|
|
||||||
it('Finding page with alias', async () => {
|
it('Finding page with alias', async () => {
|
||||||
const body = {
|
const body = {
|
||||||
|
time: 1548375408533,
|
||||||
blocks: [
|
blocks: [
|
||||||
{
|
{
|
||||||
type: 'header',
|
type: 'header',
|
||||||
|
@ -51,7 +52,7 @@ describe('Aliases REST: ', () => {
|
||||||
|
|
||||||
const {result: {uri}} = put.body;
|
const {result: {uri}} = put.body;
|
||||||
|
|
||||||
const get = await agent.get(`/${uri}`);
|
const get = await agent.get('/' + uri);
|
||||||
|
|
||||||
expect(get).to.have.status(200);
|
expect(get).to.have.status(200);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue