can-stream-kefir
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ var QUnit = require('steal-qunit'); | ||
test('Compute changes can be streamed', function () { | ||
QUnit.test('Compute changes can be streamed', function(assert) { | ||
var c = compute(0); | ||
@@ -19,12 +19,12 @@ var stream = canStream.toStream(c); | ||
QUnit.equal(computeVal, 0); | ||
assert.equal(computeVal, 0); | ||
c(1); | ||
QUnit.equal(computeVal, 1); | ||
assert.equal(computeVal, 1); | ||
c(2); | ||
QUnit.equal(computeVal, 2); | ||
assert.equal(computeVal, 2); | ||
c(3); | ||
QUnit.equal(computeVal, 3); | ||
assert.equal(computeVal, 3); | ||
}); | ||
@@ -41,3 +41,3 @@ | ||
test('Compute stream values can be piped into a compute', function () { | ||
QUnit.test('Compute stream values can be piped into a compute', function(assert) { | ||
var expected = 0; | ||
@@ -50,3 +50,3 @@ var c1 = compute(0); | ||
resultCompute.onValue(function (val) { | ||
QUnit.equal(val, expected); | ||
assert.equal(val, expected); | ||
}); | ||
@@ -66,3 +66,3 @@ | ||
test('Computed streams fire change events', function () { | ||
QUnit.test('Computed streams fire change events', function(assert) { | ||
var expected = 0; | ||
@@ -75,3 +75,3 @@ var c1 = compute(expected); | ||
resultCompute.onValue(function (newVal) { | ||
QUnit.equal(expected, newVal); | ||
assert.equal(expected, newVal); | ||
}); | ||
@@ -93,3 +93,3 @@ | ||
test('Create a stream from a compute with shorthand method: toStream', function() { | ||
QUnit.test('Create a stream from a compute with shorthand method: toStream', function(assert) { | ||
var expected = 0; | ||
@@ -101,3 +101,3 @@ var c1 = compute(0); | ||
resultCompute.onValue(function (val) { | ||
QUnit.equal(val, expected); | ||
assert.equal(val, expected); | ||
}); | ||
@@ -112,3 +112,3 @@ | ||
test("toCompute(streamMaker) can-define-stream#17", function(){ | ||
QUnit.test("toCompute(streamMaker) can-define-stream#17", function(assert) { | ||
var c = compute("a"); | ||
@@ -125,14 +125,14 @@ var letterStream = canStream.toStream(c); | ||
QUnit.deepEqual( streamedCompute(), "a" ); | ||
assert.deepEqual( streamedCompute(), "a" ); | ||
c(1); | ||
QUnit.deepEqual( streamedCompute(), 1 ); | ||
assert.deepEqual( streamedCompute(), 1 ); | ||
c("b"); | ||
QUnit.deepEqual( streamedCompute(), "b" ); | ||
assert.deepEqual( streamedCompute(), "b" ); | ||
}); | ||
test("setting test", function(){ | ||
QUnit.test("setting test", function(assert) { | ||
@@ -148,7 +148,7 @@ var c = canStream.toCompute(function(setStream){ | ||
// immediate value | ||
QUnit.equal( c(), 5); | ||
assert.equal( c(), 5); | ||
}); | ||
test('Stream on DefineList', function() { | ||
QUnit.test('Stream on DefineList', function(assert) { | ||
var expectedLength; | ||
@@ -168,3 +168,3 @@ | ||
stream.onValue(function(newLength) { | ||
QUnit.equal(newLength, expectedLength, 'List size changed'); | ||
assert.equal(newLength, expectedLength, 'List size changed'); | ||
}); | ||
@@ -183,3 +183,3 @@ | ||
test('Computes with an initial value of undefined do not emit', function() { | ||
QUnit.test('Computes with an initial value of undefined do not emit', function(assert) { | ||
var expectedLength; | ||
@@ -199,3 +199,3 @@ | ||
stream.onValue(function(event) { | ||
QUnit.equal(event.args[0], expectedLength, 'List size changed'); | ||
assert.equal(event.args[0], expectedLength, 'List size changed'); | ||
}); | ||
@@ -202,0 +202,0 @@ |
{ | ||
"name": "can-stream-kefir", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Stream values into and out of computes", | ||
@@ -49,8 +49,8 @@ "homepage": "http://canjs.com", | ||
"detect-cyclic-packages": "^1.1.0", | ||
"done-serve": "^2.0.0", | ||
"done-serve": "^3.0.0", | ||
"jshint": "^2.9.1", | ||
"steal": "^1.5.4", | ||
"steal-qunit": "^1.0.1", | ||
"steal-qunit": "^2.0.0", | ||
"steal-tools": "^1.3.6", | ||
"testee": "^0.8.0" | ||
"testee": "^0.9.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "repository": { |
# can-stream-kefir | ||
[](https://gitter.im/canjs/canjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[](https://www.bitovi.com/community/slack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[](https://forums.bitovi.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[](https://github.com/canjs/can-stream-kefir/blob/master/LICENSE) | ||
@@ -13,3 +14,3 @@ [](https://www.npmjs.com/package/can-stream-kefir) | ||
Read the [API docs on CanJS.com](https://canjs.com/doc/can-stream-kefir.html). | ||
Read the [can-stream-kefir API docs on CanJS.com](https://canjs.com/doc/can-stream-kefir.html). | ||
@@ -27,2 +28,1 @@ ## Changelog | ||
[MIT](https://github.com/canjs/can-stream-kefir/blob/master/LICENSE) | ||
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23977
1.32%1
Infinity%