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