Skip to content

Commit 27e473a

Browse files
committed
style: cleanup
1 parent c6ab782 commit 27e473a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/deprecated.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ describe('Deprecated Items test', () => {
7575
const result = await editor.run()
7676

7777
const deprecatedItems = Array.from(result.operations.values()).flatMap(operation => operation.deprecatedItems)
78+
79+
expect(deprecatedItems.every(item => item?.description?.startsWith('[Deprecated]'))).toBeTruthy()
80+
expect(result.operations.get('auth-saml-post')?.deprecatedItems?.[0].deprecatedInPreviousVersions.length).toBe(2)
7881
expect(Array.from(result.operations.values())).toEqual(expect.toIncludeSameMembers([
7982
expect.objectContaining({ deprecated: true }),
8083
expect.objectContaining({ deprecated: false }),
8184
expect.objectContaining({ deprecated: false }),
8285
]))
83-
84-
expect(deprecatedItems.every(item => item?.description?.startsWith('[Deprecated]'))).toBeTruthy()
85-
expect(result.operations.get('auth-saml-post')?.deprecatedItems?.[0].deprecatedInPreviousVersions.length).toBe(2)
8686
})
8787

8888
test('should have 1 semi-breaking changes for removed operation and property according to rules', async () => {

0 commit comments

Comments
 (0)