aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-06-26 11:13:49 +0200
committerJames Lal <james@lightsofapollo.com>2012-06-26 11:13:49 +0200
commite961e32348203c71bfae7a9142f5d7c0b8ef4e6f (patch)
treefd32c5ff5c440c6d9e62703746e5e6161ff1e1b5 /test
parent71d0d24e03e439c347d9d3d809af65d2064b1427 (diff)
downloadjsCalDAV-e961e32348203c71bfae7a9142f5d7c0b8ef4e6f.tar.gz
self closing tags
Diffstat (limited to 'test')
-rw-r--r--test/webcals/template_test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/webcals/template_test.js b/test/webcals/template_test.js
index c0836d4..05b61b6 100644
--- a/test/webcals/template_test.js
+++ b/test/webcals/template_test.js
@@ -73,6 +73,14 @@ suite('templates', function() {
assert.equal(out, '<N0:bar>content</N0:bar>');
});
+ test('self closing', function() {
+ var out = subject.tag('baz', { type: 'text' });
+ assert.equal(
+ out,
+ '<N0:baz type="text" />'
+ );
+ });
+
test('with attrs', function() {
var out = subject.tag('bar', {
value: 'val'