* installed npm * modified time-flags.spec.js * Update code to use const/let instead of var * update the variable type from let to const * add Strict mode * review fixed
This commit is contained in:
parent
4ba9eded4c
commit
05057c45d2
|
@ -1,14 +1,16 @@
|
|||
var Filer = require('../../src');
|
||||
var util = require('../lib/test-utils.js');
|
||||
var expect = require('chai').expect;
|
||||
'use strict';
|
||||
|
||||
const Filer = require('../../src');
|
||||
const util = require('../lib/test-utils.js');
|
||||
const expect = require('chai').expect;
|
||||
|
||||
describe('node times (atime, mtime, ctime) with mount flags', function() {
|
||||
|
||||
var dirname = '/dir';
|
||||
var filename = '/dir/file';
|
||||
const dirname = '/dir';
|
||||
const filename = '/dir/file';
|
||||
|
||||
function memoryFS(flags, callback) {
|
||||
var name = util.uniqueName();
|
||||
const name = util.uniqueName();
|
||||
return new Filer.FileSystem({
|
||||
name: name,
|
||||
flags: flags || [],
|
||||
|
@ -44,7 +46,7 @@ describe('node times (atime, mtime, ctime) with mount flags', function() {
|
|||
|
||||
it('should not update ctime when calling fs.rename() with NOCTIME', function(done) {
|
||||
memoryFS(['NOCTIME'], function(error, fs) {
|
||||
var newfilename = filename + '1';
|
||||
const newfilename = filename + '1';
|
||||
|
||||
createTree(fs, function() {
|
||||
stat(fs, filename, function(stats1) {
|
||||
|
|
Loading…
Reference in New Issue