mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-12 07:01:40 +08:00
Unnest client tests
This commit is contained in:
parent
1b1f352f29
commit
85c8b3e7ec
3 changed files with 349 additions and 355 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import Delta from "../../js/lib/delta";
|
import Delta from "../../js/lib/delta";
|
||||||
|
|
||||||
describe("Delta", () => {
|
|
||||||
describe("compose", () => {
|
describe("compose", () => {
|
||||||
test("insert with insert", () => {
|
test("insert with insert", () => {
|
||||||
const a = new Delta().insert("A");
|
const a = new Delta().insert("A");
|
||||||
|
|
@ -329,4 +328,3 @@ describe("Delta", () => {
|
||||||
expect(delta.transformPosition(4)).toEqual(1);
|
expect(delta.transformPosition(4)).toEqual(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import Emitter from "../../js/lib/emitter";
|
import Emitter from "../../js/lib/emitter";
|
||||||
|
|
||||||
describe("Emitter", () => {
|
|
||||||
test("listener callbacks are called on dispatch", () => {
|
test("listener callbacks are called on dispatch", () => {
|
||||||
const emitter = new Emitter();
|
const emitter = new Emitter();
|
||||||
const callback1 = jest.fn();
|
const callback1 = jest.fn();
|
||||||
|
|
@ -24,4 +23,3 @@ describe("Emitter", () => {
|
||||||
|
|
||||||
expect(callback1).not.toHaveBeenCalled();
|
expect(callback1).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import PubSub from "../../js/lib/pubsub";
|
import PubSub from "../../js/lib/pubsub";
|
||||||
|
|
||||||
describe("PubSub", () => {
|
|
||||||
test("subscribed callback is called on the specified topic", () => {
|
test("subscribed callback is called on the specified topic", () => {
|
||||||
const pubsub = new PubSub();
|
const pubsub = new PubSub();
|
||||||
const callback1 = jest.fn();
|
const callback1 = jest.fn();
|
||||||
|
|
@ -24,4 +23,3 @@ describe("PubSub", () => {
|
||||||
|
|
||||||
expect(callback1).not.toHaveBeenCalled();
|
expect(callback1).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue