Permalink
Browse files

add basic test for serving less css files

  • Loading branch information...
1 parent 67d7cf5 commit 37d78c613aeabf5d3fd0952849db2a4b6e2603cc @freewil freewil committed Mar 19, 2012
Showing with 18 additions and 0 deletions.
  1. +15 −0 test/DevelopmentIntegration.coffee
  2. +3 −0 test/assets/css/style-less.less
@@ -81,6 +81,21 @@ exports['Stylus imports work as expected'] = (test) ->
'''
test.equals body, expectedBody
test.done()
+
+exports['Less is served as CSS'] = (test) ->
+ cssTag = "<link rel='stylesheet' href='/css/style-less.css'>"
+ test.equals css('style-less'), cssTag
+
+ request 'http://localhost:3588/css/style-less.css', (err, res, body) ->
+ throw err if err
+ expectedBody = '''
+ textarea,
+ input {
+ border: 1px solid #eee;
+ }\n
+ '''
+ test.equals body, expectedBody
+ test.done()
exports['nib is supported when available'] = (test) ->
cssTag = "<link rel='stylesheet' href='/css/gradient.css'>"
@@ -0,0 +1,3 @@
+textarea, input {
+ border: 1px solid #eee;
+}

0 comments on commit 37d78c6

Please sign in to comment.