Skip to content

Commit

Permalink
use console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Feb 12, 2023
1 parent 953d844 commit 447c288
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/native/commands.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test('Print makensis license', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = shared.license;
const actual = stdout;

Expand All @@ -82,7 +82,7 @@ test('Print makensis license as JSON', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
let expected = shared.license;
expected = JSON.stringify({ license: expected });

Expand All @@ -104,7 +104,7 @@ test('Print compiler information', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = shared.headerInfo;
const actual = stdout;

Expand All @@ -121,7 +121,7 @@ test('Print compiler information as JSON', async (t) => {
assert.is(actual, expected);
} catch (error) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = true;
const actual = stdout.defined_symbols.__GLOBAL__;

Expand All @@ -139,7 +139,7 @@ test('Print help for all commands', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = shared.commandHelp.replace(/\s+/g, '');
const actual = stdout.replace(/\s+/g, '');

Expand All @@ -157,7 +157,7 @@ test('Print help for OutFile command', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = shared.outFile;
const actual = stdout;

Expand All @@ -176,7 +176,7 @@ test('Print help for OutFile command as JSON', async (t) => {
assert.is(actual, expected);
} catch ({ stdout }) {
// NSIS < 3.03
t.log('Legacy NSIS');
console.log('Legacy NSIS');
const expected = outFile;
const actual = stdout;

Expand Down

0 comments on commit 447c288

Please sign in to comment.