Skip to content

Commit

Permalink
Update index.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmark authored Nov 30, 2017
1 parent a7bc299 commit 5706348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import express from 'express';
import request from 'supertest';
import tweenz from '../src/index';

describe('middleware should work with res.json', () => {
describe('middleware', () => {
let app;
let beforeFn;
let afterFn;
Expand All @@ -23,7 +23,7 @@ describe('middleware should work with res.json', () => {
app.use(tweenz(dummyTween));
});

it('middleware should work with res.json', done => {
it('should work with res.json', done => {
app.get('/foo', (req, res) => {
res.json({ foo: 'bar' });
});
Expand All @@ -37,7 +37,7 @@ describe('middleware should work with res.json', () => {
});
});

it('middleware should work with res.json', done => {
it('should work with res.end', done => {
app.get('/foo', (req, res) => {
res.send('foo');
});
Expand Down

0 comments on commit 5706348

Please sign in to comment.