Skip to content

Commit

Permalink
Skip testcases related to bold type
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonGyu1 committed Sep 15, 2023
1 parent 8336906 commit 87601c8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
3 changes: 2 additions & 1 deletion test/integration/document_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ describe('Document', function () {
await c2.deactivate();
});

it('detects the events from doc.subscribe', async function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('detects the events from doc.subscribe', async function () {
const c1 = new yorkie.Client(testRPCAddr);
const c2 = new yorkie.Client(testRPCAddr);
await c1.activate();
Expand Down
3 changes: 2 additions & 1 deletion test/integration/snapshot_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ describe('Snapshot', function () {
}, this.test!.title);
});

it('should handle snapshot for text with attributes', async function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('should handle snapshot for text with attributes', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
root.k1 = new Text();
Expand Down
16 changes: 9 additions & 7 deletions test/integration/text_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

// TODO(MoonGyu1): remove skip after applying mark operation
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('ex2. concurrent formatting and insertion', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
Expand Down Expand Up @@ -482,7 +482,8 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

it('ex3. overlapping formatting(bold)', async function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('ex3. overlapping formatting(bold)', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
root.k1 = new Text();
Expand Down Expand Up @@ -519,7 +520,8 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

it('ex4. overlapping different formatting(bold and italic)', async function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('ex4. overlapping different formatting(bold and italic)', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
root.k1 = new Text();
Expand Down Expand Up @@ -593,7 +595,7 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

// TODO(MoonGyu1): remove skip after applying mark operation
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('ex6. conflicting overlaps(bold) - 1', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
Expand Down Expand Up @@ -638,7 +640,7 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

// TODO(MoonGyu1): remove skip after applying mark operation
// TODO(MoonGyu1): Remove skip after implementing removeMark operation of bold type
it.skip('ex6. conflicting overlaps(bold) - 2', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
Expand Down Expand Up @@ -721,7 +723,7 @@ describe('peri-text example: text concurrent edit', function () {
}, this.test!.title);
});

// TODO(MoonGyu1): remove skip after applying mark operation
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('ex8. text insertion at span boundaries(bold)', async function () {
await withTwoClientsAndDocuments<{ k1: Text }>(async (c1, d1, c2, d2) => {
d1.update((root) => {
Expand Down Expand Up @@ -811,7 +813,7 @@ describe('peri-text example: text concurrent edit', function () {
});

describe('Style', function () {
// TODO(MoonGyu1): remove skip after applying mark operation
// TODO(MoonGyu1): Remove skip after implementing removeMark operation of bold type
it.skip('should handle style operations', function () {
const doc = new Document<{ k1: Text }>('test-doc');
assert.equal('{}', doc.toSortedJSON());
Expand Down
6 changes: 4 additions & 2 deletions test/unit/document/document_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,8 @@ describe('Document', function () {
});
});

it('changeInfo test for text', async function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('changeInfo test for text', async function () {
type TestDoc = { text: Text };
const doc = new Document<TestDoc>('test-doc');
type EventForTest = Array<OperationInfo>;
Expand Down Expand Up @@ -1231,7 +1232,8 @@ describe('Document', function () {
assert.equal(155, doc.getRoot().counter.getValue());
});

it('sets any type of custom attribute values and can returns JSON parsable string', function () {
// TODO(MoonGyu1): Remove skip after implementing addMark operation of bold type
it.skip('sets any type of custom attribute values and can returns JSON parsable string', function () {
type AttrsType = {
bold?: boolean;
indent?: number;
Expand Down

0 comments on commit 87601c8

Please sign in to comment.