1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

node test script working with new html scripts

This commit is contained in:
Pelle Nilsson 2013-06-16 22:25:16 +02:00
parent a1057b81c9
commit f96565e83c
2 changed files with 4 additions and 7 deletions

View file

@ -67,11 +67,7 @@ upload: html png pdf rtf
$(uploadto);\
fi
test/templatejs/htmlscripts.js: $(wildcard templates/html/*script.html)
./templates.py html script > $@
templatejstest: test/templatejs/htmlscripts.js \
test/templatejs/testhtmlscripts.js
templatejstest:
node test/templatejs/testhtmlscripts.js
clean:
@ -86,7 +82,8 @@ clean:
fixmes:
grep FIXME *.py
.PHONY: all clean fixmes uploadto expected checkexpected test unittest
.PHONY: all clean fixmes uploadto expected checkexpected test unittest \
templatejstest
.PRECIOUS: %.tex %.dot

View file

@ -1,6 +1,6 @@
#!/usr/bin/env node
var htmlscriptsfile = './htmlscripts.js';
var htmlscriptsfile = '../../gamebookformatplay.js';
exports.setUp = function(cb) {
delete require.cache[require.resolve(htmlscriptsfile)];