Skip to content

Commit 8149cf2

Browse files
committed
update tests
1 parent 5e285de commit 8149cf2

File tree

20 files changed

+0
-160
lines changed

20 files changed

+0
-160
lines changed

exercises/01.advanced-tools/01.problem.annotations/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/01.advanced-tools/01.solution.annotations/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/01.advanced-tools/02.problem.structured/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/01.advanced-tools/02.solution.structured/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/02.elicitation/01.problem/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/02.elicitation/01.solution/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/03.sampling/01.problem.simple/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/03.sampling/01.solution.simple/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/03.sampling/02.problem.advanced/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

exercises/03.sampling/02.solution.advanced/src/index.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,6 @@ test('Elicitation: delete_tag decline', async () => {
649649
structuredContent.success,
650650
'🚨 structuredContent.success should be false after declining to delete a tag',
651651
).toBe(false)
652-
invariant(
653-
'message' in structuredContent,
654-
'🚨 structuredContent missing message field',
655-
)
656-
expect(
657-
structuredContent.message,
658-
'🚨 structuredContent.message should include "cancelled"',
659-
).toMatch(/cancelled/i)
660652
})
661653

662654
test('ListChanged notification: resources', async () => {

0 commit comments

Comments
 (0)