Skip to content

Commit

Permalink
deps: bump @types/js-yaml from 3.12.4 to 3.12.5 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Sep 4, 2020
1 parent f89d868 commit b9e600f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions __tests__/get-inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ beforeEach(() => {
jest.resetModules();
process.stdout.write = jest.fn();

const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
Object.keys(doc.inputs).forEach(name => {
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
process.env[envVar] = doc.inputs[name]['default'];
});
});

afterEach(() => {
const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
Object.keys(doc.inputs).forEach(name => {
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
console.debug(`delete ${envVar}\t${process.env[envVar]}`);
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"devDependencies": {
"@types/jest": "^26.0.13",
"@types/js-yaml": "^3.12.4",
"@types/js-yaml": "^3.12.5",
"@types/node": "~12",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
Expand Down

0 comments on commit b9e600f

Please sign in to comment.