From 8cdf5d4a363ba99a6356e7e1dfe0dfb39e6fb13e Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 11 Oct 2019 13:56:43 +0200 Subject: change ?interactive pseudofacet to text/html+interactive pseudo-type fix browser push/popstate --- spec/key_spec.moon | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/key_spec.moon') diff --git a/spec/key_spec.moon b/spec/key_spec.moon index 9b7dde4..edd5ccf 100644 --- a/spec/key_spec.moon +++ b/spec/key_spec.moon @@ -56,3 +56,13 @@ describe "Key", -> assert.is.equal 'facet: and -> long -> type', tostring Key 'facet: and -> long -> type' assert.is.equal 'facet: and -> long -> type', tostring Key 'facet', 'and -> long -> type' assert.is.equal 'facet: and -> long -> type', tostring Key 'facet: and -> long -> type' + + it ":tostring formats the key", -> + assert.is.equal 'type/only', (Key 'type/only')\tostring! + assert.is.equal 'type/only', (Key '', 'type/only')\tostring! + assert.is.equal 'type/only', (Key ": type/only")\tostring! + + it ":tostring supports strict mode", -> + assert.is.equal ': type/only', (Key 'type/only')\tostring true + assert.is.equal ': type/only', (Key '', 'type/only')\tostring true + assert.is.equal ': type/only', (Key ": type/only")\tostring true -- cgit v1.2.3