git ssb

1+

Matt McKegg / mutant



Commit 69500ffe4bd08cc562cd2f9b1f8e41ea76335686

Add most basic array test and pass.

Piet Geursen committed on 12/8/2016, 9:01:39 AM
Parent: 8896a2e957d022ffef99f62ab6fb39670ec3138e

Files changed

package.jsonchanged
test/array.jsadded
package.jsonView
@@ -2,9 +2,9 @@
22 "name": "@mmckegg/mutant",
33 "version": "3.10.1",
44 "description": "Create observables and map them to DOM elements. Massively inspired by hyperscript and observ-*. No virtual dom, just direct observable bindings. Unnecessary garbage collection is avoided by using mutable objects instead of blasting immutable junk all over the place.",
55 "scripts": {
6- "test": "echo \"Error: no test specified\" && exit 1"
6 + "test": "browserify test/array.js | tape-run | tap-spec"
77 },
88 "author": "Matt McKegg",
99 "repository": {
1010 "type": "git",
@@ -27,6 +27,13 @@
2727 "graph"
2828 ],
2929 "dependencies": {
3030 "browser-split": "0.0.1"
31 + },
32 + "devDependencies": {
33 + "browserify": "^13.1.1",
34 + "setimmediate": "^1.0.5",
35 + "tap-spec": "^4.1.1",
36 + "tape": "^4.6.3",
37 + "tape-run": "^2.1.4"
3138 }
3239 }
test/array.jsView
@@ -1,0 +1,11 @@
1 +require('setimmediate')
2 +var test = require('tape')
3 +
4 +var MutantArray = require('../array');
5 +
6 +test('Observable returns contents when called ', function(t) {
7 + var array = MutantArray(['cat'])
8 + var actual = array()
9 + t.deepEqual(actual, ['cat'])
10 + t.end()
11 +})

Built with git-ssb-web