Skip to content

Commit

Permalink
test: make dir list entry tests use reliable timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed May 21, 2014
1 parent 60bab49 commit cb58c57
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test-parser.js
Expand Up @@ -32,11 +32,11 @@ var group = path.basename(__filename, '.js') + '/';
owner: 'root',
group: 'root',
size: 4096,
date: new Date((new Date()).getFullYear() + '-05-19T22:17')
date: new Date('2012-05-19T00:00')
},
what: 'Directory with sticky bit and executable for others'
},
{ source: 'drwxrwx--t 7 root root 4096 May 19 22:17 tmp',
{ source: 'drwxrwx--t 7 root root 4096 May 19 2012 tmp',
expected: {
type: 'd',
name: 'tmp',
Expand All @@ -46,11 +46,11 @@ var group = path.basename(__filename, '.js') + '/';
owner: 'root',
group: 'root',
size: 4096,
date: new Date((new Date()).getFullYear() + '-05-19T22:17')
date: new Date('2012-05-19T00:00')
},
what: 'Directory with sticky bit and executable for others #2'
},
{ source: 'drwxrwxrwT 7 root root 4096 May 19 22:17 tmp',
{ source: 'drwxrwxrwT 7 root root 4096 May 19 2012 tmp',
expected: {
type: 'd',
name: 'tmp',
Expand All @@ -60,11 +60,11 @@ var group = path.basename(__filename, '.js') + '/';
owner: 'root',
group: 'root',
size: 4096,
date: new Date((new Date()).getFullYear() + '-05-19T22:17')
date: new Date('2012-05-19T00:00')
},
what: 'Directory with sticky bit and not executable for others'
},
{ source: 'drwxrwx--T 7 root root 4096 May 19 22:17 tmp',
{ source: 'drwxrwx--T 7 root root 4096 May 19 2012 tmp',
expected: {
type: 'd',
name: 'tmp',
Expand All @@ -74,7 +74,7 @@ var group = path.basename(__filename, '.js') + '/';
owner: 'root',
group: 'root',
size: 4096,
date: new Date((new Date()).getFullYear() + '-05-19T22:17')
date: new Date('2012-05-19T00:00')
},
what: 'Directory with sticky bit and not executable for others #2'
},
Expand Down

0 comments on commit cb58c57

Please sign in to comment.