From 3a0aef1f534f46d74fad908e2a8989f291ba6fec Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Tue, 17 Nov 2020 20:00:00 +0600 Subject: [PATCH] test(core): update utils/sort expected result Align with stable `Array.prototype.sort` in Node.js 12.x References: - https://v8.dev/features/stable-sort - https://github.com/nodejs/node/pull/22754#issuecomment-419551068 --- packages/core/src/utils/sort.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/sort.test.ts b/packages/core/src/utils/sort.test.ts index c389a9a..2fc3ca7 100644 --- a/packages/core/src/utils/sort.test.ts +++ b/packages/core/src/utils/sort.test.ts @@ -66,14 +66,14 @@ const ascMigrations: Array = [ getMigrationRecord({ id: 6, version: '03', type: 'do' }), getMigrationRecord({ id: 7, version: '03', type: 'undo' }), getMigrationRecord({ id: 8, version: '03', type: 'do' }), - getMigrationSource({ version: '04', type: 'do' }), getMigrationSource({ version: '04', type: 'undo' }), + getMigrationSource({ version: '04', type: 'do' }), getMigrationSource({ version: '05', type: 'do' }), ] const descMigrations: Array = [ getMigrationSource({ version: '05', type: 'do' }), - getMigrationSource({ version: '04', type: 'do' }), getMigrationSource({ version: '04', type: 'undo' }), + getMigrationSource({ version: '04', type: 'do' }), getMigrationRecord({ id: 8, version: '03', type: 'do' }), getMigrationRecord({ id: 7, version: '03', type: 'undo' }), getMigrationRecord({ id: 6, version: '03', type: 'do' }),