Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
8964dd6f
Commit
8964dd6f
authored
8 years ago
by
Valerii
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
- import expect and expect flow (#1463)
- code style
parent
1d586aaf
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/fixtures/kitchensink/integration/initDOM.js
+2
-1
...react-scripts/fixtures/kitchensink/integration/initDOM.js
packages/react-scripts/fixtures/kitchensink/src/App.js
+1
-2
packages/react-scripts/fixtures/kitchensink/src/App.js
with
3 additions
and
3 deletions
+3
-3
packages/react-scripts/fixtures/kitchensink/integration/initDOM.js
+
2
-
1
View file @
8964dd6f
...
...
@@ -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
...
...
@@ -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.
'
)).
to
BeU
ndefined
()
expect
(
new
Error
(
'
This isn
\'
t the error you are looking for.
'
)).
to
.
be
.
u
ndefined
()
})
}
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/fixtures/kitchensink/src/App.js
+
1
-
2
View file @
8964dd6f
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets