Skip to content

Commit

Permalink
Fix unit tests failures on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
triwav committed May 28, 2021
1 parent 49b7964 commit 142c40c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RokuDeploy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('index', () => {
const zip = await JSZip.loadAsync(data);

for (const file of files) {
const zipFileContents = await zip.file(file.toString()).async('string');
const zipFileContents = await zip.file(s`${file.toString()}`).async('string');
const sourcePath = path.join(options.rootDir, file);
const incomingContents = fsExtra.readFileSync(sourcePath, 'utf8');
expect(zipFileContents).to.equal(incomingContents);
Expand All @@ -479,7 +479,7 @@ describe('index', () => {
const zip = await JSZip.loadAsync(data);

for (const file of files) {
const zipFileContents = await zip.file(file.toString()).async('string');
const zipFileContents = await zip.file(s`${file.toString()}`).async('string');
const sourcePath = path.join(options.rootDir, file);
const incomingContents = fsExtra.readFileSync(sourcePath, 'utf8');
expect(zipFileContents).to.equal(incomingContents);
Expand Down Expand Up @@ -1541,7 +1541,7 @@ describe('index', () => {
const data = fsExtra.readFileSync(outputZipPath);
const zip = await JSZip.loadAsync(data);
for (const file of files) {
const zipFileContents = await zip.file(file.toString()).async('string');
const zipFileContents = await zip.file(s`${file.toString()}`).async('string');
const sourcePath = path.join(options.rootDir, file);
const incomingContents = fsExtra.readFileSync(sourcePath, 'utf8');
if (file === 'manifest') {
Expand Down

0 comments on commit 142c40c

Please sign in to comment.