mithril-vndb/util/tests/test-prop.js
impinball b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00

16 lines
290 B
JavaScript

"use strict"
var o = require("../../ospec/ospec")
var prop = require("../../util/prop")
o.spec("prop", function() {
o("works", function() {
var store = prop(1)
var initialValue = store()
store(2)
var newValue = store()
o(initialValue).equals(1)
o(newValue).equals(2)
})
})