Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
make tests more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 15, 2012
1 parent 2805e8d commit 06da6f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/source-package-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ testCase('Source package', {
path.resolve(file)
, 'utf-8'
)
if (!options.readDelays)
if (!options.readDelays)
exp.callsArgWith(2, null, options.fileContents[index])
else {
setTimeout(function () {
Expand Down Expand Up @@ -285,7 +285,7 @@ testCase('Source package', {
, 'BAR!'
, 'BAZ!'
]
, readDelays: [ 50, 25, 0 ]
, readDelays: [ 50, 25, 10 ]
, pkg: 'mypkg'
, json: {
name: 'mypkg-name'
Expand Down Expand Up @@ -386,7 +386,7 @@ testCase('Source package', {
, 'BAR!'
, 'BAZ!'
]
, readDelays: [ 50, 25, 0 ]
, readDelays: [ 50, 25, 10 ]
, pkg: 'mypkg'
, json: {
name: 'mypkg-name'
Expand Down Expand Up @@ -420,7 +420,7 @@ testCase('Source package', {
, 'ENDERBAR!'
, 'ENDERBAZ!'
]
, readDelays: [ 50, 0, 25, 40, 0, 20 ]
, readDelays: [ 50, 10, 25, 40, 10, 20 ]
, pkg: 'mypkg'
, json: {
name: 'mypkg-name'
Expand Down

0 comments on commit 06da6f2

Please sign in to comment.