Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 29, 2019
1 parent 71ea842 commit 343aa14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions japaFile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.TS_NODE_FILES = true
require('ts-node/register')

const { configure } = require('japa')
Expand Down
5 changes: 4 additions & 1 deletion test/cors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
import * as test from 'japa'
import { createServer } from 'http'
import * as supertest from 'supertest'
import { HttpContext } from '@poppinss/http-server'
import { HttpContext as BaseHttpContext } from '@poppinss/http-server'
import { HttpContextConstructorContract } from '@ioc:Adonis/Core/HttpContext'

import { Cors } from '../src/Middleware/Cors'
import { specFixtures } from './fixtures/cors'

const HttpContext = BaseHttpContext as unknown as HttpContextConstructorContract

test.group('Cors', () => {
specFixtures.forEach((fixture) => {
test(fixture.title, async (assert) => {
Expand Down

0 comments on commit 343aa14

Please sign in to comment.