dont expect rendered to be called from range.replace() anymore

as this is now called from the `transform` method, unused in this test
This commit is contained in:
Bruno Windels 2019-08-27 16:39:30 +02:00
parent d8bb9ecedf
commit 994bcb5c85

View file

@ -60,7 +60,6 @@ describe('editor/range', function() {
expect(model.parts[2].type).toBe("plain"); expect(model.parts[2].type).toBe("plain");
expect(model.parts[2].text).toBe("!!!!"); expect(model.parts[2].text).toBe("!!!!");
expect(model.parts.length).toBe(3); expect(model.parts.length).toBe(3);
expect(renderer.count).toBe(1);
}); });
it('range replace across parts', function() { it('range replace across parts', function() {
const renderer = createRenderer(); const renderer = createRenderer();
@ -83,6 +82,5 @@ describe('editor/range', function() {
expect(model.parts[2].type).toBe("plain"); expect(model.parts[2].type).toBe("plain");
expect(model.parts[2].text).toBe(" me"); expect(model.parts[2].text).toBe(" me");
expect(model.parts.length).toBe(3); expect(model.parts.length).toBe(3);
expect(renderer.count).toBe(1);
}); });
}); });