Add test for opening existing SQL file and typing text into it (#5816)

* Add test for opening existing SQL file and typing text into it

* Clean up

* More cleanup, remove unneeded queryEditor and add smoke test scripts

* Update comments to be clearer
This commit is contained in:
Charles Gagnon
2019-06-04 02:42:39 +00:00
committed by GitHub
parent 9f7d96bad3
commit 50242b2c35
6 changed files with 111 additions and 0 deletions

13
scripts/test-smoke.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi
cd $ROOT/test/smoke
node test/index.js "$@"