11'use strict' ;
22import request from 'supertest' ;
33import ServerMock from 'mock-http-server' ;
4- import chai from 'chai' ;
4+ import { expect } from 'chai' ;
55import async from 'async' ;
66import app from '../app.js' ;
77
@@ -42,7 +42,7 @@ describe('meta endpoint', function() {
4242 request ( BASE_IFRAMELY_SERVER_URL )
4343 . get ( '/iframely?url=' + url )
4444 . end ( function ( err , res ) {
45- chai . expect ( res . body . meta ) . to . exist ;
45+ expect ( res . body . meta ) . to . exist ;
4646 done ( err ) ;
4747 } ) ;
4848 } ) ;
@@ -60,8 +60,8 @@ describe('meta endpoint', function() {
6060 request ( BASE_IFRAMELY_SERVER_URL )
6161 . get ( '/iframely?url=' + url )
6262 . end ( function ( err , res ) {
63- chai . expect ( res . statusCode ) . to . equal ( 404 ) ;
64- chai . expect ( res . body ) . to . deep . equal ( {
63+ expect ( res . statusCode ) . to . equal ( 404 ) ;
64+ expect ( res . body ) . to . deep . equal ( {
6565 error : {
6666 source : 'iframely' ,
6767 code : 404 ,
@@ -85,8 +85,8 @@ describe('meta endpoint', function() {
8585 request ( BASE_IFRAMELY_SERVER_URL )
8686 . get ( '/iframely?url=' + url )
8787 . end ( function ( err , res ) {
88- chai . expect ( res . statusCode ) . to . equal ( 417 ) ;
89- chai . expect ( res . body ) . to . deep . equal ( {
88+ expect ( res . statusCode ) . to . equal ( 417 ) ;
89+ expect ( res . body ) . to . deep . equal ( {
9090 error : {
9191 source : 'iframely' ,
9292 code : 417 ,
@@ -110,8 +110,8 @@ describe('meta endpoint', function() {
110110 request ( BASE_IFRAMELY_SERVER_URL )
111111 . get ( '/iframely?url=' + url )
112112 . end ( function ( err , res ) {
113- chai . expect ( res . statusCode ) . to . equal ( 403 ) ;
114- chai . expect ( res . body ) . to . deep . equal ( {
113+ expect ( res . statusCode ) . to . equal ( 403 ) ;
114+ expect ( res . body ) . to . deep . equal ( {
115115 error : {
116116 source : 'iframely' ,
117117 code : 403 ,
@@ -135,8 +135,8 @@ describe('meta endpoint', function() {
135135 request ( BASE_IFRAMELY_SERVER_URL )
136136 . get ( '/iframely?url=' + url )
137137 . end ( function ( err , res ) {
138- chai . expect ( res . statusCode ) . to . equal ( 403 ) ;
139- chai . expect ( res . body ) . to . deep . equal ( {
138+ expect ( res . statusCode ) . to . equal ( 403 ) ;
139+ expect ( res . body ) . to . deep . equal ( {
140140 error : {
141141 source : 'iframely' ,
142142 code : 403 ,
@@ -164,8 +164,8 @@ describe('meta endpoint', function() {
164164 request ( BASE_IFRAMELY_SERVER_URL )
165165 . get ( '/iframely?url=' + url )
166166 . end ( function ( err , res ) {
167- chai . expect ( res . statusCode ) . to . equal ( 408 ) ;
168- chai . expect ( res . body ) . to . deep . equal ( {
167+ expect ( res . statusCode ) . to . equal ( 408 ) ;
168+ expect ( res . body ) . to . deep . equal ( {
169169 error : {
170170 source : 'iframely' ,
171171 code : 408 ,
@@ -191,8 +191,8 @@ describe('meta endpoint', function() {
191191 request ( BASE_IFRAMELY_SERVER_URL )
192192 . get ( '/iframely?url=' + url )
193193 . end ( function ( err , res ) {
194- chai . expect ( res . statusCode ) . to . equal ( 417 ) ;
195- chai . expect ( res . body ) . to . deep . equal ( {
194+ expect ( res . statusCode ) . to . equal ( 417 ) ;
195+ expect ( res . body ) . to . deep . equal ( {
196196 error : {
197197 source : 'iframely' ,
198198 code : 417 ,
@@ -220,8 +220,8 @@ describe('meta endpoint', function() {
220220 var endpoint = '/iframely?url=' + url ;
221221
222222 function runExpectations ( res ) {
223- chai . expect ( res . statusCode ) . to . equal ( 403 ) ;
224- chai . expect ( res . body ) . to . deep . equal ( {
223+ expect ( res . statusCode ) . to . equal ( 403 ) ;
224+ expect ( res . body ) . to . deep . equal ( {
225225 error : {
226226 source : 'iframely' ,
227227 code : 403 ,
0 commit comments