Skip to content

Commit e38dac3

Browse files
committed
test: add fixture for es2020
1 parent 2eebd0b commit e38dac3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

test/fixtures/es2020/expected.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const foo = obj => {
2+
return obj;
3+
};

test/fixtures/es2020/fixture.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const assert = require('assert');
2+
3+
const foo = (obj) => {
4+
assert(obj.aaa?.bbb()?.ccc() === '9007199254740991n');
5+
return obj;
6+
};

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const assert = require('assert').strict;
99
const Vinyl = require('vinyl');
1010

1111
describe('gulp-unassert', () => {
12-
for (const name of ['es2017', 'es2018', 'es2019']) {
12+
for (const name of ['es2017', 'es2018', 'es2019', 'es2020']) {
1313
it(name + ' syntax', (done) => {
1414
const stream = unassert();
1515
const srcStream = new Vinyl({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy