Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6b8f1a1e
Commit
6b8f1a1e
authored
Apr 10, 2018
by
Lukas Eipert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove `instanceof Array` test
parent
7f2244ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+3
-4
No files found.
spec/javascripts/test_bundle.js
View file @
6b8f1a1e
...
...
@@ -71,13 +71,12 @@ beforeEach(() => {
const
axiosDefaultAdapter
=
getDefaultAdapter
();
let
testFiles
=
process
.
env
.
TEST_FILES
;
if
(
testFiles
instanceof
Array
&&
testFiles
.
length
>
0
)
{
console
.
log
(
`Running only tests:
${
testFiles
}
`
);
let
testFiles
=
process
.
env
.
TEST_FILES
||
[];
if
(
testFiles
.
length
>
0
)
{
testFiles
=
testFiles
.
map
(
path
=>
path
.
replace
(
/^spec
\/
javascripts
\/
/
,
''
).
replace
(
/
\.
js$/
,
''
));
console
.
log
(
`Running only tests matching:
${
testFiles
}
`
);
}
else
{
console
.
log
(
'
Running all tests
'
);
testFiles
=
[];
}
// render all of our tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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