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

Commit

Permalink
🎨 Minor specs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Wliu authored and Wliu committed Feb 4, 2016
1 parent e8023c5 commit b3e8514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/puppet-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ describe "Puppet grammar", ->
expect(tokens[1]).toEqual value: '=>', scopes: ['source.puppet', 'punctuation.separator.key-value.puppet']

it "tokenizes attribute separator with string values", ->
{tokens} = grammar.tokenizeLine('ensure => \"present\"')
{tokens} = grammar.tokenizeLine('ensure => "present"')
expect(tokens[1]).toEqual value: '=>', scopes: ['source.puppet', 'punctuation.separator.key-value.puppet']

describe "blocks", ->
it "tokenizes single quoted node", ->
{tokens} = grammar.tokenizeLine('node \'hostname\' {')
{tokens} = grammar.tokenizeLine("node 'hostname' {")
expect(tokens[0]).toEqual value: 'node', scopes: ['source.puppet', 'meta.definition.class.puppet', 'storage.type.puppet']

it "tokenizes double quoted node", ->
Expand Down

0 comments on commit b3e8514

Please sign in to comment.