Skip to content

Commit

Permalink
chore(test): rename fixtures dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Aug 18, 2024
1 parent ff4353e commit c6193bb
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
coverage
node_modules

test/fixture/cache
test/fixture/out
tests/fixtures/cache
tests/fixtures/out
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"docs": "jsdoc -d docs ./README.md ./src/index.js ./src/get.js ./src/run.js ./src/bld.js",
"test": "vitest run --coverage",
"test:cov": "vitest --coverage.enabled true",
"demo": "cd test/fixture && node demo.js",
"demo": "cd test/fixtures && node demo.js",
"license-check": "jsgl --local ."
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/get/decompress.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("get/decompress", async function () {

let nwFilePath = '';
let nwDirPath = '';
let nwOutPath = "./test/fixture/cache";
let nwOutPath = "./test/fixtures/cache";

afterAll(async function () {
await fs.promises.rm(nwOutPath, { recursive: true, force: true });
Expand Down
2 changes: 1 addition & 1 deletion src/get/ffmpeg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("get/ffmpeg", function () {
"0.83.0",
util.PLATFORM_KV[process.platform],
util.ARCH_KV[process.arch],
"./test/fixture"
"./test/fixtures"
);
expect(util.fileExists(ffmpegFile)).resolves.toBe(true);
}, Infinity);
Expand Down
2 changes: 1 addition & 1 deletion src/get/node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("get/node", function () {
nodeFile = await node(
"https://dl.nwjs.io",
"0.83.0",
"./test/fixture"
"./test/fixtures"
);
expect(util.fileExists(nodeFile)).resolves.toBe(true);
}, Infinity);
Expand Down
2 changes: 1 addition & 1 deletion src/get/nw.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("get/nw", function () {
"sdk",
util.PLATFORM_KV[process.platform],
util.ARCH_KV[process.arch],
"./test/fixture"
"./test/fixtures"
);
expect(util.fileExists(nwFile)).resolves.toBe(true);
}, Infinity);
Expand Down
2 changes: 1 addition & 1 deletion src/get/request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import request from "./request.js";
describe.skip("get/request", function () {

let url = "https://raw.githubusercontent.com/nwutils/nw-builder/main/src/util/osx.arm.versions.json"
const filePath = "./test/fixture/cache/request.test.json";
const filePath = "./test/fixtures/cache/request.test.json";

it("downloads from specific url", async function () {
await request(url, filePath);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/bld.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ describe.skip("build test suite", async () => {
let driver = undefined;

const nwOptions = {
srcDir: "test/fixture/app",
srcDir: "test/fixtures/app",
mode: "build",
version: "0.83.0",
flavor: "sdk",
platform: util.PLATFORM_KV[process.platform],
arch: util.ARCH_KV[process.arch],
downloadUrl: "https://dl.nwjs.io",
manifestUrl: "https://nwjs.io/versions",
outDir: "test/fixture/out/app",
cacheDir: "test/fixture/cache",
outDir: "test/fixtures/out/app",
cacheDir: "test/fixtures/cache",
cache: true,
ffmpeg: false,
glob: false,
Expand Down

0 comments on commit c6193bb

Please sign in to comment.