Permalink
Browse files

Test: Upfront vars. Errant semicolon removed.

  • Loading branch information...
1 parent b16ce47 commit bec5ae42fd44d074103540e1bad50412a0a4192a @reid reid committed Nov 18, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 test/onyx.js
View
@@ -41,11 +41,13 @@ vows.describe("Onyx").addBatch({
assert.equal(topic.size, 36);
},
"yields the latest mtime of all files" : function (topic) {
- var latest = topic.mtime.getTime();
- for (var filename in topic.files) {
- var f = topic.files[filename];
- assert.strictEqual(latest >= f.mtime.getTime(), true);
- };
+ var fileName,
+ file,
+ latest = topic.mtime.getTime();
+ for (fileName in topic.files) {
+ file = topic.files[fileName];
+ assert.strictEqual(latest >= file.mtime.getTime(), true);
+ }
},
"yields the stats of all files" : function (topic) {
Object.keys(topic.files).forEach(function (f) {

0 comments on commit bec5ae4

Please sign in to comment.