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

Commit 94fa052

Browse files
committed
Merge branch 'wl-relax-regex' of github.com:atom/language-javascript into wl-relax-regex
2 parents 1227bc4 + 8ad71ce commit 94fa052

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/javascript-spec.coffee

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ describe "Javascript grammar", ->
239239
expect(tokens[3]).toEqual value: ';', scopes: ['source.js', 'punctuation.terminator.statement.js']
240240

241241
describe "Functions", ->
242-
it "tokenizes support constants", ->
243-
{tokens} = grammar.tokenizeLine('awesome.2fnlknwdlks4g();')
244-
expect(tokens[0]).toEqual value: 'awesome', scopes: ['source.js']
245-
expect(tokens[1]).toEqual value: '.', scopes: ['source.js', 'meta.delimiter.method.period.js']
246-
expect(tokens[2]).toEqual value: '2fnlknwdlks4g', scopes: ['source.js', 'support.function.js']
247-
expect(tokens[3]).toEqual value: '(', scopes: ['source.js', 'meta.brace.round.js']
248-
expect(tokens[4]).toEqual value: ')', scopes: ['source.js', 'meta.brace.round.js']
249-
expect(tokens[5]).toEqual value: ';', scopes: ['source.js', 'punctuation.terminator.statement.js']
242+
it "tokenizes support constants", ->
243+
{tokens} = grammar.tokenizeLine('awesome.2fnlknwdlks4g();')
244+
expect(tokens[0]).toEqual value: 'awesome', scopes: ['source.js']
245+
expect(tokens[1]).toEqual value: '.', scopes: ['source.js', 'meta.delimiter.method.period.js']
246+
expect(tokens[2]).toEqual value: '2fnlknwdlks4g', scopes: ['source.js', 'support.function.js']
247+
expect(tokens[3]).toEqual value: '(', scopes: ['source.js', 'meta.brace.round.js']
248+
expect(tokens[4]).toEqual value: ')', scopes: ['source.js', 'meta.brace.round.js']
249+
expect(tokens[5]).toEqual value: ';', scopes: ['source.js', 'punctuation.terminator.statement.js']
250250

251251
describe "ES6 string templates", ->
252252
it "tokenizes them as strings", ->

0 commit comments

Comments
 (0)