Skip to content

Commit 2d402ec

Browse files
committed
Add test case for Promise; use preferred globals
1 parent 0c596b2 commit 2d402ec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/rules/assertions/noUndefinedTypes.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ export default {
3131
}
3232
`
3333
},
34+
{
35+
code: `
36+
/**
37+
* @param {Promise} foo - Bar.
38+
*/
39+
function quux(foo) {
40+
41+
}
42+
`,
43+
env: {
44+
es6: true
45+
}
46+
},
3447
{
3548
code: `
3649
class MyClass {}
@@ -97,7 +110,7 @@ export default {
97110
},
98111
{
99112
code: `
100-
/*global MyType*/
113+
/*globals MyType*/
101114
102115
/**
103116
* @param {MyType} foo - Bar.

0 commit comments

Comments
 (0)