fix var to const
This commit is contained in:
parent
26b47ee094
commit
abb5143850
|
@ -1,5 +1,5 @@
|
||||||
var util = require('../lib/test-utils.js');
|
const util = require('../lib/test-utils.js');
|
||||||
var expect = require('chai').expect;
|
const expect = require('chai').expect;
|
||||||
|
|
||||||
// Waiting on https://github.com/filerjs/filer/pull/553 to land
|
// Waiting on https://github.com/filerjs/filer/pull/553 to land
|
||||||
describe.skip('fs.unwatchFile', function() {
|
describe.skip('fs.unwatchFile', function() {
|
||||||
|
@ -7,12 +7,12 @@ describe.skip('fs.unwatchFile', function() {
|
||||||
afterEach(util.cleanup);
|
afterEach(util.cleanup);
|
||||||
|
|
||||||
it('should be a function', function() {
|
it('should be a function', function() {
|
||||||
var fs = util.fs();
|
const fs = util.fs();
|
||||||
expect(typeof fs.unwatchFile).to.equal('function');
|
expect(typeof fs.unwatchFile).to.equal('function');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not throw an error when using a file not being watched', function() {
|
it('should not throw an error when using a file not being watched', function() {
|
||||||
var fs = util.fs();
|
const fs = util.fs();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fs.unwatchFile('/myfile');
|
fs.unwatchFile('/myfile');
|
||||||
|
|
Loading…
Reference in New Issue