Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing unit tests

  • Loading branch information...
commit e2d062c983f9ba60593bd7cd833a7657a8a25140 1 parent 654f7ea
@piscis piscis authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  spec/acceptance.spec.coffee
  2. +2 −2 spec/hrefupdater.spec.coffee
View
2  spec/acceptance.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()
View
4 spec/hrefupdater.spec.coffee
@@ -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.')
Please sign in to comment.
Something went wrong with that request. Please try again.