Skip to content

Commit

Permalink
set/retrieve test
Browse files Browse the repository at this point in the history
  • Loading branch information
lieuwex committed Jun 24, 2015
1 parent b525d18 commit c10d3e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions strict-reactive-var-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Tinytest.add('be able to initialized with and without `new`', function (test) {
test.instanceOf(SReactiveVar(null), SReactiveVar);
})

Tinytest.add('set and retrieve values', function (test) {
var val = new SReactiveVar(Number, 0)
test.equal(val.get(), 0)
val.set(420)
test.equal(val.get(), 420)
})

Tinytest.add('set values and be reactive', function (test) {
var val = new SReactiveVar(Number, 0)

Expand Down

0 comments on commit c10d3e4

Please sign in to comment.