Skip to content

Commit

Permalink
refactor: Remove irrelevant fs modules
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Dec 9, 2020
1 parent 44d3986 commit c1907a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
9 changes: 0 additions & 9 deletions lib/utils/fs/removeFile.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/utils/fs/removeFileSync.js

This file was deleted.

6 changes: 3 additions & 3 deletions test/unit/lib/utils/fs/copyDirContentsSync.test.js
Expand Up @@ -2,17 +2,17 @@

const expect = require('chai').expect;
const fs = require('fs');
const fse = require('fs-extra');
const path = require('path');
const copyDirContentsSync = require('../../../../../lib/utils/fs/copyDirContentsSync');
const fileExistsSync = require('../../../../../lib/utils/fs/fileExistsSync');
const removeFileSync = require('../../../../../lib/utils/fs/removeFileSync');
const writeFileSync = require('../../../../../lib/utils/fs/writeFileSync');
const skipOnDisabledSymlinksInWindows = require('@serverless/test/skip-on-disabled-symlinks-in-windows');

describe('#copyDirContentsSync()', () => {
const afterCallback = () => {
removeFileSync(path.join(process.cwd(), 'testSrc'));
removeFileSync(path.join(process.cwd(), 'testDest'));
fse.removeSync(path.join(process.cwd(), 'testSrc'));
fse.removeSync(path.join(process.cwd(), 'testDest'));
};
afterEach(afterCallback);

Expand Down

0 comments on commit c1907a2

Please sign in to comment.