mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
12 lines
258 B
JavaScript
12 lines
258 B
JavaScript
"use strict";
|
|
|
|
var expect = require("chai").expect;
|
|
|
|
module.exports = function (helpers) {
|
|
var component = helpers.mount(require.resolve("./index"), {});
|
|
|
|
expect(function () {
|
|
component.state.foo = "bar";
|
|
}).to.throw("Cannot add property foo");
|
|
};
|