Add a test edition and associated script
This commit is contained in:
parent
709e3eec14
commit
94c7a4fc39
|
@ -0,0 +1,3 @@
|
|||
title: $:/DefaultTiddlers
|
||||
|
||||
HelloThere
|
|
@ -0,0 +1,5 @@
|
|||
title: HelloThere
|
||||
|
||||
This is TiddlyWiki5's browser-based test runner. See the bottom of this page for the test results.
|
||||
|
||||
http://five.tiddlywiki.com/
|
|
@ -0,0 +1,21 @@
|
|||
/*\
|
||||
title: test.js
|
||||
type: application/javascript
|
||||
tags: [[$:/tags/test-spec]]
|
||||
|
||||
An example test specification
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
describe("WikiParser tests", function() {
|
||||
it("contains spec with an expectation", function() {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"plugins": [
|
||||
"tiddlywiki/jasmine"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# test TiddlyWiki5
|
||||
|
||||
# create a temporary directory if it doesn't already exist
|
||||
|
||||
mkdir -p tmp
|
||||
mkdir -p tmp/test
|
||||
|
||||
# build test.html
|
||||
|
||||
node ./tiddlywiki.js \
|
||||
./editions/test \
|
||||
--verbose \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html tmp/test/index.html text/plain \
|
||||
|| exit 1
|
Loading…
Reference in New Issue