Skip to content

Commit

Permalink
Merge pull request #2493 from amartinz/fixes
Browse files Browse the repository at this point in the history
Fixes for building, typo and windows ci
  • Loading branch information
Flohack74 authored Mar 11, 2022
2 parents 370f431 + d9c0153 commit ea9d1bd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions __mocks__/systeminformation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function osInfo(cb) {
cb({
distro: "distro",
release: "release",
codename: "codename",
platform: "platform",
kernel: "kernel",
arch: "arch",
build: "build",
servicepack: "servicepack"
});
}

module.exports.osInfo = osInfo;
3 changes: 2 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default {
sourcemap: true,
format: "iife",
name: "app",
file: "public/build/bundle.js"
file: "public/build/bundle.js",
inlineDynamicImports: true
},
plugins: [
svelte({
Expand Down
2 changes: 1 addition & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
push("/working");
footerData.set({
topText: `${$installConfigData.name} (${$installConfigData.codename})`,
underText: "Please Configure the installation",
underText: "Please configure the installation",
waitingDots: false
});
yumi.setPosition("center");
Expand Down
2 changes: 2 additions & 0 deletions src/lib/reporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const { prompt } = require("./prompt.js");
jest.mock("./prompt.js");
const { OpenCutsReporter } = require("open-cuts-reporter");
jest.mock("open-cuts-reporter");
const { osInfo } = require("systeminformation");
jest.mock("systeminformation");

const reporter = require("./reporter.js");

Expand Down

0 comments on commit ea9d1bd

Please sign in to comment.