Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit b66c3f7

Browse files
committed
🐛 Tweak duplicated spec
1 parent ec8a389 commit b66c3f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/javascript-spec.coffee

+4-4
Original file line numberDiff line numberDiff line change
@@ -2047,8 +2047,8 @@ describe "JavaScript grammar", ->
20472047
expect(tokens[6]).toEqual value: 'variable', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'variable.other.jsdoc']
20482048
expect(tokens[8]).toEqual value: 'this is the description ', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'other.description.jsdoc']
20492049
2050-
{tokens} = grammar.tokenizeLine('/** @param {function(string, ...number)} variable this is the description */')
2051-
expect(tokens[4]).toEqual value: '{function(string, ...number)}', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'entity.name.type.instance.jsdoc']
2050+
{tokens} = grammar.tokenizeLine('/** @param {function(string, number, ...number)} variable this is the description */')
2051+
expect(tokens[4]).toEqual value: '{function(string, number, ...number)}', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'entity.name.type.instance.jsdoc']
20522052
expect(tokens[6]).toEqual value: 'variable', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'variable.other.jsdoc']
20532053
expect(tokens[8]).toEqual value: 'this is the description ', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'other.description.jsdoc']
20542054
@@ -2130,8 +2130,8 @@ describe "JavaScript grammar", ->
21302130
expect(tokens[4]).toEqual value: '{function(string, ...number)}', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'entity.name.type.instance.jsdoc']
21312131
expect(tokens[6]).toEqual value: 'this is the description ', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'other.description.jsdoc']
21322132
2133-
{tokens} = grammar.tokenizeLine('/** @return {function(string, ...number)} this is the description */')
2134-
expect(tokens[4]).toEqual value: '{function(string, ...number)}', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'entity.name.type.instance.jsdoc']
2133+
{tokens} = grammar.tokenizeLine('/** @return {function(string, number, ...number)} this is the description */')
2134+
expect(tokens[4]).toEqual value: '{function(string, number, ...number)}', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'entity.name.type.instance.jsdoc']
21352135
expect(tokens[6]).toEqual value: 'this is the description ', scopes: ['source.js', 'comment.block.documentation.js', 'other.meta.jsdoc', 'other.description.jsdoc']
21362136
21372137
{tokens} = grammar.tokenizeLine('/** @return {function(!string)} this is the description */')

0 commit comments

Comments
 (0)