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 apiJS1 `shouldSatisfy` (`isInfixOf` code)
19 cs apiJS3 `shouldSatisfy` (`isInfixOf` code)
20 cs apiJS4 `shouldSatisfy` (`isInfixOf` code)
21 cs apiJS6 `shouldSatisfy` (`isInfixOf` code)
23 describe "writeJSFiles" $ do
24 it "[not a test] write apiJS to static/api.js" $ do
27 describe "app" $ with (return app) $ do
28 context "/api.js" $ do
29 it "delivers apiJS" $ do
30 get "/api.js" `shouldRespondWith` (fromString (cs apiJS1))
33 it "delivers something" $ do
34 get "" `shouldRespondWith` 200
35 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