Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
cc58b509
...
cc58b5090cfc714cfccac4996f31aa3e8110199a
authored
2011-12-23 15:37:42 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added tests for utils' isJsFile()
1 parent
a3e8620a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
tests/suites/utils.js
tests/suites/utils.js
View file @
cc58b50
...
...
@@ -30,6 +30,22 @@
}
})();
t
.
comment
(
'isJsFile()'
);
(
function
()
{
testCases
=
{
''
:
false
,
'toto.png'
:
false
,
'plop'
:
false
,
'gniii.coffee'
:
true
,
'script.js'
:
true
};
for
(
var
testCase
in
testCases
)
{
t
.
assertEquals
(
isJsFile
(
testCase
),
testCases
[
testCase
],
'isJsFile() checks for js file'
);
}
})();
t
.
comment
(
'mergeObjects()'
);
(
function
()
{
...
...
Please
register
or
sign in
to post a comment