1{-# LANGUAGE OverloadedStrings #-}
3module JavascriptSpec where
7import Data.String.Conversions
16 it "is contained verbatim in Javascript.lhs" $ do
17 code <- readFile "Javascript.lhs"
18 cs apiJS `shouldSatisfy` (`isInfixOf` code)
20 describe "writeJSFiles" $ do
21 it "[not a test] write apiJS to static/api.js" $ do
24 describe "app" $ with (return app) $ do
25 context "/api.js" $ do
26 it "delivers apiJS" $ do
27 get "/api.js" `shouldRespondWith` (fromString (cs apiJS))
30 it "delivers something" $ do
31 get "" `shouldRespondWith` 200
32 get "/" `shouldRespondWith` 200
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list