Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
move ES7 test failure to end
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed Sep 28, 2017
1 parent 0320794 commit cb02d9a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ suite('closure', () => {
assertCompileOk(out, 'var x=3;')
});

test('ES7 out', () => {
const flags = {
jsCode: [{
src: 'console.log(`foo`)',
path: 'foo.js',
}],
languageIn: 'ECMASCRIPT_2017',
languageOut: 'ECMASCRIPT_2017',
compilationLevel: 'ADVANCED',
warningLevel: 'VERBOSE',
};
const out = compile(flags);
assertCompileOk(out, '\'use strict\';console.log("foo");')
});

test('advanced', () => {
const flags = {
jsCode: [{
Expand All @@ -69,4 +54,19 @@ suite('closure', () => {
assertCompileOk(simple, 'var x=1;console.info(1);', 'simple code was incorrect');
});

test('ES7 out', () => {
const flags = {
jsCode: [{
src: 'console.log(`foo`)',
path: 'foo.js',
}],
languageIn: 'ECMASCRIPT_2017',
languageOut: 'ECMASCRIPT_2017',
compilationLevel: 'ADVANCED',
warningLevel: 'VERBOSE',
};
const out = compile(flags);
assertCompileOk(out, '\'use strict\';console.log("foo");')
});

});

0 comments on commit cb02d9a

Please sign in to comment.