Skip to content

Commit b280778

Browse files
committed
feature: @putout/operator-keyword: assert, with: add
1 parent b1c94ad commit b280778

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/operator-keyword/lib/keyword.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
const moduleDeclarations = [
44
'import',
55
'export',
6+
'assert',
7+
'with',
68
];
79

810
const declarations = [

packages/operator-keyword/lib/keyword.spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,17 @@ test('putout: operator: isKeyword: default', (t) => {
184184
t.ok(result);
185185
t.end();
186186
});
187+
188+
test('putout: operator: isKeyword: assert', (t) => {
189+
const result = isKeyword('assert');
190+
191+
t.ok(result);
192+
t.end();
193+
});
194+
195+
test('putout: operator: isKeyword: with', (t) => {
196+
const result = isKeyword('with');
197+
198+
t.ok(result);
199+
t.end();
200+
});

0 commit comments

Comments
 (0)