Skip to content

Commit

Permalink
Remove tests on minified file (we don't refer tinyify anymore).
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jan 11, 2023
1 parent 529fa92 commit 6c8acf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
.PHONY: clean browser-tests

browser-tests: out-browser-tests/tests-unit.js out-browser-tests/tests-unit-min.js out-browser-tests/tests-localnet.js out-browser-tests/tests-devnet.js out-browser-tests/tests-testnet.js
browser-tests: out-browser-tests/tests-unit.js out-browser-tests/tests-localnet.js out-browser-tests/tests-devnet.js out-browser-tests/tests-testnet.js

out-browser-tests/tests-unit.js: out-tests
npx browserify $(shell find out-tests -type f -name '*.js' ! -name '*.net.spec.*') --require buffer/:buffer -o out-browser-tests/tests-unit.js --standalone tests -p esmify

out-browser-tests/tests-unit-min.js: out-tests
npx browserify $(shell find out-tests -type f -name '*.js' ! -name '*.net.spec.*') --require buffer/:buffer -o out-browser-tests/tests-unit-min.js --standalone tests -p esmify -p tinyify

out-browser-tests/tests-localnet.js: out-tests
npx browserify $(shell find out-tests -type f -name '*.js' ! -name '*.spec.*') $(shell find out-tests -type f -name '*.local.net.spec.js') --require buffer/:buffer -o out-browser-tests/tests-localnet.js --standalone tests -p esmify

Expand Down
5 changes: 0 additions & 5 deletions browser-tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
Unit tests
</button>
</li>
<li class="list-group-item">
<button class="btn btn-link" onclick="runTests('/out-browser-tests/tests-unit-min.js')">
Unit tests (minified code)
</button>
</li>
<li class="list-group-item">
<button class="btn btn-link" onclick="runTests('/out-browser-tests/tests-localnet.js')">
Integration tests - local testnet
Expand Down

0 comments on commit 6c8acf6

Please sign in to comment.