| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Run tests in this directory. |
| 4 | # |
| 5 | # Requires node.js to be installed locally. |
| 6 | # |
| 7 | # Usage: |
| 8 | # web/TEST.sh search |
| 9 | |
| 10 | : ${LIB_OSH=stdlib/osh} |
| 11 | source $LIB_OSH/bash-strict.sh |
| 12 | source $LIB_OSH/task-five.sh |
| 13 | |
| 14 | search() { |
| 15 | node web/search.test.js |
| 16 | } |
| 17 | |
| 18 | soil-run() { |
| 19 | $0 search |
| 20 | } |
| 21 | |
| 22 | task-five "$@" |