Permalink
Browse files

fixing unit tests

  • Loading branch information...
1 parent 654f7ea commit e2d062c983f9ba60593bd7cd833a7657a8a25140 @piscis piscis committed Apr 16, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/acceptance.spec.coffee
  2. +2 −2 spec/hrefupdater.spec.coffee
@@ -103,7 +103,7 @@ for type, port of servers then do (type, port) ->
# Just use csslint to validate that we have sane css here until we come
# up with something better. This will at least confirm that
# preprocessors work.
- result = validateCSS css
+ result = validateCSS css,rules
expect(result.messages.length).toBe 0, "#{ util.inspect result.messages }"
jasmine.asyncSpecDone()
@@ -6,8 +6,8 @@ describe "incUrlSeq increases the id in the url", ->
url = "/foo/bar.js?v=123"
it "adds id in to url", ->
- expect(incUrlSeq url).toBe url + "--1"
+ expect(incUrlSeq url).toBe url.replace('.','--1.')
it "increases existing id", ->
url2 = incUrlSeq url
- expect(incUrlSeq url2).toBe url + "--2"
+ expect(incUrlSeq url2).toBe url.replace('.','--2.')

0 comments on commit e2d062c

Please sign in to comment.