Skip to content

Commit

Permalink
adjust wine test
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jan 23, 2021
1 parent 938e3bd commit 6592975
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/wine.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,12 @@ test('Compilation with raw arguments strings', t => {

test('Compilation with raw arguments strings [async]', async (t) => {
try {
const { stdout } = await MakeNSIS.compile(scriptFile.minimal, { wine: true, rawArguments: '-V0' });
const { status } = await MakeNSIS.compile(scriptFile.minimal, { wine: true, rawArguments: '-V0', define: {
'NULL_DEVICE': nullDevice
}});

const expected = '';
const actual = stdout;
const expected = 0;
const actual = status;

t.is(actual, expected);
} catch ({ stderr }) {
Expand All @@ -414,10 +416,12 @@ test('Compilation with raw arguments array', t => {

test('Compilation with raw arguments array [async]', async (t) => {
try {
const { stdout } = await MakeNSIS.compile(scriptFile.minimal, { wine: true, rawArguments: ['-V0'] });
const { status } = await MakeNSIS.compile(scriptFile.minimal, { wine: true, rawArguments: ['-V0'], define: {
'NULL_DEVICE': nullDevice
}});

const expected = '';
const actual = stdout;
const expected = 0;
const actual = status;

t.is(actual, expected);
} catch ({ stderr }) {
Expand Down

0 comments on commit 6592975

Please sign in to comment.