Skip to content

Commit

Permalink
🆕 Add spec for change
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Jan 22, 2016
1 parent b709688 commit 5b2e01d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/helper-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ describe 'linter helpers', ->
results = helpers.parse(input, regex, {flags: "i"})
expect(results).toEqual(output)

regex = 'type:(?<type>.+) message:(?<message>.+)'
input = 'TYPE:type message:message'
output = [(
type: 'type'
text: 'message'
filePath: null
range: [[0, 0], [0, 0]]
)]
results = helpers.parse(input, regex, {flags: "gi"})
expect(results).toEqual(output)

describe '::find', ->
it 'cries when no argument is passed', ->
expect ->
Expand Down

0 comments on commit 5b2e01d

Please sign in to comment.