Browse Source

Modify #227 test case

Ben Hsieh 8 years ago
parent
commit
d498a50f5a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test/test-0.10.2.js

+ 1
- 1
test/test-0.10.2.js View File

@@ -38,7 +38,7 @@ describe('#227 IOS file modification date correctness', (report, done) => {
38 38
   fs.createFile(path, 'datafornow')
39 39
   .then(() => fs.stat(path))
40 40
   .then((stat) => {
41
-    let date = Math.floor(stat.lastModified);
41
+    let date = stat.lastModified;
42 42
     console.log(date, stat);
43 43
     let correct = date/Date.now() > 0.95 || date/Date.now() < 1.05;
44 44
     report(<Assert key="modification date should be correct"