Skip to content

Commit

Permalink
fix: change line order
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Sep 16, 2024
1 parent debd0e2 commit 58dfb95
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions test/command/manifest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,30 +108,28 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
it('should sync folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'sync', hash, 'test/utility'])
expect(consoleMessages).toMatchLinesInOrder([['address.ts'], ['NEW'], ['stamp.ts'], ['NEW'], ['index.ts'], ['NEW']])
expect(consoleMessages).toMatchLinesInOrder([
['address.ts', 'NEW'],
['stamp.ts', 'NEW'],
['index.ts', 'NEW'],
])
consoleMessages.length = 0
hash = await runAndGetManifest(['manifest', 'sync', hash, 'test/utility'])
expect(consoleMessages).toMatchLinesInOrder([
['address.ts'],
['UNCHANGED'],
['stamp.ts'],
['UNCHANGED'],
['index.ts'],
['UNCHANGED'],
['address.ts', 'UNCHANGED'],
['stamp.ts', 'UNCHANGED'],
['index.ts', 'UNCHANGED'],
])
consoleMessages.length = 0
hash = await runAndGetManifest(['manifest', 'sync', hash, 'test/http-mock'])
expect(consoleMessages).toMatchLinesInOrder([['cheque-mock.ts'], ['NEW']])
expect(consoleMessages).toMatchLinesInOrder([['cheque-mock.ts', 'NEW']])
consoleMessages.length = 0
await runAndGetManifest(['manifest', 'sync', hash, 'test/http-mock', '--remove'])
expect(consoleMessages).toMatchLinesInOrder([
['cheque-mock.ts', 'UNCHANGED'],
['address.ts'],
['REMOVED'],
['stamp.ts'],
['REMOVED'],
['index.ts'],
['REMOVED'],
['address.ts', 'REMOVED'],
['stamp.ts', 'REMOVED'],
['index.ts', 'REMOVED'],
])
})

Expand Down

0 comments on commit 58dfb95

Please sign in to comment.