Skip to content

Commit

Permalink
- import expect and expect flow (facebook#1463)
Browse files Browse the repository at this point in the history
- code style
  • Loading branch information
tuchk4 authored and randycoulman committed May 8, 2017
1 parent dc9c712 commit 341f573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs')
const http = require('http')
const jsdom = require('jsdom')
const path = require('path')
const { expect } = require('chai')

let getMarkup
let resourceLoader
Expand Down Expand Up @@ -30,7 +31,7 @@ if (process.env.E2E_FILE) {
resourceLoader = (resource, callback) => resource.defaultFetch(callback)
} else {
it.only('can run jsdom (at least one of "E2E_FILE" or "E2E_URL" environment variables must be provided)', () => {
expect(new Error('This isn\'t the error you are looking for.')).toBeUndefined()
expect(new Error('This isn\'t the error you are looking for.')).to.be.undefined()
})
}

Expand Down
3 changes: 1 addition & 2 deletions packages/react-scripts/fixtures/kitchensink/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ class App extends React.Component {
require.ensure([], () => this.setFeature(require('./features/syntax/TemplateInterpolation').default));
break;
case 'unknown-ext-inclusion':
require.ensure([], () => this.setFeature(require('./features/webpack/UnknownExtInclusion').default)
);
require.ensure([], () => this.setFeature(require('./features/webpack/UnknownExtInclusion').default));
break;
default:
this.setFeature(null);
Expand Down

0 comments on commit 341f573

Please sign in to comment.