diff --git a/package.json b/package.json index 0a5b5a97f6..51ae863381 100644 --- a/package.json +++ b/package.json @@ -46,23 +46,23 @@ ], "dependencies": { "riot-cli": "^3.0.2", - "riot-compiler": "^3.2.2", + "riot-compiler": "^3.2.3", "riot-observable": "^3.0.0", - "riot-tmpl": "^3.0.5", + "riot-tmpl": "^3.0.8", "simple-dom": "0.3.2", "simple-html-tokenizer": "^0.4.1" }, "devDependencies": { "benchmark": "^2.1.4", - "chai": "^3.5.0", - "cheerio": "^0.22.0", + "chai": "^4.0.0", + "cheerio": "^1.0.0-rc.1", "chokidar-cli": "^1.2.0", "coveralls": "^2.13.1", "eslint": "^3.19.0", "eslint-config-riot": "^1.0.0", - "glob": "^7.1.1", + "glob": "^7.1.2", "istanbul": "^0.4.5", - "jsdom": "^10.1.0", + "jsdom": "^11.0.0", "karma": "^1.7.0", "karma-chrome-launcher": "^2.1.1", "karma-coverage": "^1.1.1", @@ -70,7 +70,7 @@ "karma-phantomjs-launcher": "^1.0.4", "karma-rollup-preprocessor": "^4.0.0", "karma-sauce-launcher": "^1.1.0", - "mocha": "^3.3.0", + "mocha": "^3.4.2", "phantomjs-prebuilt": "^2.1.14", "rollup": "^0.41.6", "rollup-plugin-alias": "1.3.1", @@ -78,9 +78,9 @@ "rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-node-resolve": "^3.0.0", "rollup-plugin-riot": "^1.1.0", - "sinon": "^2.2.0", + "sinon": "^2.3.2", "sinon-chai": "^2.10.0", - "uglify-js": "^3.0.4" + "uglify-js": "^3.0.10" }, "preferGlobal": true, "files": [ diff --git a/test/specs/browser/compiler/compiler.spec.js b/test/specs/browser/compiler/compiler.spec.js index 8f37580276..367d79f4bf 100644 --- a/test/specs/browser/compiler/compiler.spec.js +++ b/test/specs/browser/compiler/compiler.spec.js @@ -6,6 +6,8 @@ import { getRiotStyles } from '../../../helpers/index' +import '../../../tag/bug-2369.tag' + describe('Riot compiler', function() { @@ -148,4 +150,12 @@ describe('Riot compiler', function() { tag.unmount() }) + it('tags containing regex get properly compiled', function() { + injectHTML('') + const tag = riot.mount('bug-2369')[0] + + expect(tag.root).to.be.ok + + tag.unmount() + }) }) \ No newline at end of file diff --git a/test/specs/browser/riot/if.spec.js b/test/specs/browser/riot/if.spec.js index ceaf0a9188..dd77633bde 100644 --- a/test/specs/browser/riot/if.spec.js +++ b/test/specs/browser/riot/if.spec.js @@ -95,9 +95,9 @@ describe('Riot if', function() { tag.update({cond: true, items: ['third']}) - expect(tag.refs.first).to.be.an.instanceof(HTMLElement) - expect(tag.refs.second).to.be.an.instanceof(HTMLElement) - expect(tag.refs.third).to.be.an.instanceof(HTMLElement) + expect(tag.refs.first).to.be.ok + expect(tag.refs.second).to.be.ok + expect(tag.refs.third).to.be.ok tag.update({cond: false, items: []}) diff --git a/test/tag/bug-2369.tag b/test/tag/bug-2369.tag new file mode 100644 index 0000000000..7473160c7e --- /dev/null +++ b/test/tag/bug-2369.tag @@ -0,0 +1,10 @@ + +

{ getSpaceName(message) }

+ + +