Skip to content

Commit 67d7ba9

Browse files
committed
updated bats test
1 parent 54302b1 commit 67d7ba9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.test.bats

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
DIR=$(dirname $BATS_TEST_FILENAME)
33

44
load "${NGBOOK_ROOT}/scripts/bats/fullstack.bats"
5-
load '/usr/local/lib/bats-support/load.bash'
6-
load '/usr/local/lib/bats-assert/load.bash'
5+
load "${NGBOOK_ROOT}/scripts/bats-support/load.bash"
6+
load "${NGBOOK_ROOT}/scripts/bats-assert/load.bash"
77

88
@test "angular2-rxjs-chat e2e tests pass" {
99
cd $DIR
@@ -13,13 +13,15 @@ load '/usr/local/lib/bats-assert/load.bash'
1313

1414
setup() {
1515
cd $DIR
16+
kill_by_port 8080
1617
kill_by_grep "webpack-dev-server"
1718
npm run go 3>- &
1819
true
1920
}
2021

2122
teardown() {
2223
cd $DIR
24+
kill_by_port 8080
2325
kill_by_grep "webpack-dev-server"
2426
true
2527
}

0 commit comments

Comments
 (0)