Skip to content

Commit

Permalink
test(core): update utils/sort expected result
Browse files Browse the repository at this point in the history
Align with stable `Array.prototype.sort` in Node.js 12.x

References:
  - https://v8.dev/features/stable-sort
  - nodejs/node#22754 (comment)
  • Loading branch information
MunifTanjim committed Nov 17, 2020
1 parent b548c73 commit 3a0aef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/utils/sort.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ const ascMigrations: Array<MigrationRecord | MigrationSource> = [
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<MigrationRecord | MigrationSource> = [
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' }),
Expand Down

0 comments on commit 3a0aef1

Please sign in to comment.