From ebb4046f1cb8d097bdcd938d997a41ede63c11b8 Mon Sep 17 00:00:00 2001 From: dehmer Date: Tue, 27 Jun 2023 08:29:49 +0200 Subject: [PATCH] clean-up. --- test/flyd.test.js | 6 +++--- test/signal.test.js | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/flyd.test.js b/test/flyd.test.js index 283f0c3..321d61f 100644 --- a/test/flyd.test.js +++ b/test/flyd.test.js @@ -269,7 +269,7 @@ describe('stream', function() { b(1); assert.deepEqual(result, [1, 2]); }); - it.skip('[afec - unsupported]can combine streams and project deps as args', function() { + it.skip('[afec - unsupported] can combine streams and project deps as args', function() { var a = flyd.stream(); var b = flyd.stream(0); var collect = function(x, y, self) { return (self() || []).concat([x(), y()]); }; @@ -376,7 +376,7 @@ describe('stream', function() { x(1); assert.equal(doubleX(), 2); }); - it.skip('[2b43 - unsupported] handles function returning undefined', function() { + it.skip('[2b43 - incompatible] handles function returning undefined', function() { var x = stream(1); var maybeDoubleX = flyd.map(function(x) { return x > 3 ? 2 * x : undefined; @@ -554,7 +554,7 @@ describe('stream', function() { s1(12)(2); s2(4)(44); s1(1); s2(12)(2); assert.deepEqual(result, [12, 2, 4, 44, 1, 12, 2]); }); - it.skip('[8ed3 - undefined] should pass defined undefined along', function() { + it.skip('[8ed3 - incompatible] should pass defined undefined along', function() { var s1 = stream(); var s2 = stream(undefined); var merged = flyd.merge(s1, s2); diff --git a/test/signal.test.js b/test/signal.test.js index 2a26333..251d912 100644 --- a/test/signal.test.js +++ b/test/signal.test.js @@ -291,7 +291,7 @@ describe('Interface Specification', function () { assert.deepStrictEqual(actual, expected) }) - it('unnamed [40c9]', function () { + it('[40c9] unnamed', function () { const a = Signal.of() const b = link(a => a + 1, a) const c = link((a, b) => a * b, [a, b]) @@ -310,7 +310,7 @@ describe('Interface Specification', function () { }) describe('Fantasy Land', function () { - it('map :: Signal s => (a -> b) -> s a -> s b [2d75]', function () { + it('[2d75] map :: Signal s => (a -> b) -> s a -> s b', function () { const a = Signal.of() const b = R.map(x => x * 2, a) assert.strictEqual(b(), undefined) @@ -318,7 +318,7 @@ describe('Interface Specification', function () { a(2); assert.strictEqual(b(), 4) }) - it('map :: Signal s => (a -> b) -> s a -> s b [af73]', function () { + it('[af73] map :: Signal s => (a -> b) -> s a -> s b', function () { const a = Signal.of(1) .map(x => x * 2) .map(x => x + 1) @@ -356,7 +356,7 @@ describe('Interface Specification', function () { a(2); assert.strictEqual(b(), 6) }) - it('chain :: Signal s => (a -> s b) -> s a -> s b [3646]', async function () { + it('[3646] chain :: Signal s => (a -> s b) -> s a -> s b', async function () { const expected = [42] const input = Signal.of() const output = input.chain(() => R.tap(s => expected.forEach(s), Signal.of())) @@ -366,14 +366,14 @@ describe('Interface Specification', function () { input('go!'); assert.deepStrictEqual(actual, expected) }) - it('chain :: Signal s => (a -> s b) -> s a -> s b [4ae4]', async function () { + it('[4ae4] chain :: Signal s => (a -> s b) -> s a -> s b', async function () { const expected = 42 const main = Signal.of(expected) const output = main.chain(v => Signal.of(v)) assert.deepStrictEqual(output(), expected) }) - it('chain :: Signal s => (a -> s b) -> s a -> s b [9cc4]', async function () { + it('[9cc4] chain :: Signal s => (a -> s b) -> s a -> s b', async function () { // Preserve ordering. const input = Signal.of() const a = Signal.of() @@ -406,7 +406,7 @@ describe('Interface Specification', function () { }) describe('miscellaneous operators', function () { - it('startWith :: Signal s => a -> s a -> s a [ae26]', function () { + it('[ae26] startWith :: Signal s => a -> s a -> s a', function () { // Initial value if signal is undefined. const a = Signal.of() const b = startWith(0, a) @@ -414,7 +414,7 @@ describe('Interface Specification', function () { a(1); assert.strictEqual(b(), 1) }) - it('startWith :: Signal s => (() -> a) -> s a -> s a [46de]', function () { + it('[46de] startWith :: Signal s => (() -> a) -> s a -> s a', function () { // Initial value (from function) if signal is undefined. const a = Signal.of() const b = startWith(() => 0, a) @@ -422,7 +422,7 @@ describe('Interface Specification', function () { a(1); assert.strictEqual(b(), 1) }) - it('startWith :: Signal s => a -> s a -> s a [46de]', function () { + it('[46de] startWith :: Signal s => a -> s a -> s a', function () { // Initial value for linked signal. const a = Signal.of() const b = link(a => a + 1, [a]) @@ -431,7 +431,7 @@ describe('Interface Specification', function () { a(1); assert.strictEqual(c(), 2) }) - it('startWith :: Signal s => a -> s a -> s a [b308]', function () { + it('[b308] startWith :: Signal s => a -> s a -> s a', function () { // Initial value is ignored if signal is defined. const a = Signal.of(1) const b = startWith(0, a)