Skip to content

Commit

Permalink
test: remove skip from all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Sep 16, 2024
1 parent 525679b commit f24fc69
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
32 changes: 16 additions & 16 deletions test/command/manifest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
srcHash = (invocation.runnable as Upload).hash
})

it.skip('should add file', async () => {
it('should add file', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'README.md'])
consoleMessages.length = 0
Expand All @@ -44,7 +44,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('/bytes')).toBeTruthy()
})

it.skip('should add folder', async () => {
it('should add folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'test/utility'])
consoleMessages.length = 0
Expand All @@ -54,7 +54,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('stamp.ts')).toBeTruthy()
})

it.skip('should add file with different name when using --as', async () => {
it('should add file with different name when using --as', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'README.md', '--as', 'docs/README.txt'])
consoleMessages.length = 0
Expand All @@ -63,15 +63,15 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('docs/README.txt')).toBeTruthy()
})

it.skip('should handle both --as and --folder in add command', async () => {
it('should handle both --as and --folder in add command', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash + '/misc', 'README.md', '--as', 'docs/README.txt'])
consoleMessages.length = 0
await invokeTestCli(['manifest', 'list', hash])
expect(hasMessageContaining('misc/docs/README.txt')).toBeTruthy()
})

it.skip('should remove file', async () => {
it('should remove file', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'README.md'])
consoleMessages.length = 0
Expand All @@ -83,7 +83,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('README.md')).toBeFalsy()
})

it.skip('should remove folder', async () => {
it('should remove folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'README.md'])
hash = await runAndGetManifest(['manifest', 'add', hash + '/utils', 'test/utility'])
Expand All @@ -100,7 +100,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('utils')).toBeFalsy()
})

it.skip('should sync folder', async () => {
it('should sync folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'sync', hash, 'test/utility'])
expect(hasMessageContaining('new -> address.ts')).toBeTruthy()
Expand All @@ -124,39 +124,39 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('removed -> stamp.ts')).toBeTruthy()
})

it.skip('should list single file', async () => {
it('should list single file', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'src'])
consoleMessages.length = 0
await invokeTestCli(['manifest', 'list', `bzz://${hash}/command/pss/send.ts`])
expect(consoleMessages).toHaveLength(1)
})

it.skip('should list folder', async () => {
it('should list folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'src'])
consoleMessages.length = 0
await invokeTestCli(['manifest', 'list', `bzz://${hash}/command/pss`])
expect(consoleMessages).toHaveLength(5)
})

it.skip('should download single file', async () => {
it('should download single file', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'src'])
consoleMessages.length = 0
await invokeTestCli(['manifest', 'download', `bzz://${hash}/command/pss/index.ts`, 'test/data/4'])
expect(consoleMessages).toHaveLength(1)
})

it.skip('should download folder via bzz link', async () => {
it('should download folder via bzz link', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'src'])
consoleMessages.length = 0
await invokeTestCli(['manifest', 'download', `bzz://${hash}/command/pss`, 'test/data/4'])
expect(consoleMessages).toHaveLength(5)
})

it.skip('should download folder', async () => {
it('should download folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash + '/test/utility', 'test/utility'])
consoleMessages.length = 0
Expand All @@ -166,7 +166,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(statSync('test/data/1/test/utility/stamp.ts')).toBeTruthy()
})

it.skip('should download only the specified folder', async () => {
it('should download only the specified folder', async () => {
let hash = await runAndGetManifest(['manifest', 'create'])
hash = await runAndGetManifest(['manifest', 'add', hash, 'README.md'])
hash = await runAndGetManifest(['manifest', 'add', hash + '/utils', 'test/utility'])
Expand All @@ -175,7 +175,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(entries).toHaveLength(3) // instead of 4
})

it.skip('should merge manifests', async () => {
it('should merge manifests', async () => {
let hash1 = await runAndGetManifest(['manifest', 'create'])
hash1 = await runAndGetManifest(['manifest', 'add', hash1, 'README.md'])
let hash2 = await runAndGetManifest(['manifest', 'create'])
Expand All @@ -189,7 +189,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
expect(hasMessageContaining('stamp.ts')).toBeTruthy()
})

it.skip('should merge manifests and overwrite destination', async () => {
it('should merge manifests and overwrite destination', async () => {
writeFileSync('test/data/alpha.txt', '1')
writeFileSync('test/data/bravo.txt', '2')
let hash1 = await runAndGetManifest(['manifest', 'create'])
Expand All @@ -210,9 +210,9 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining
const invocation = await invokeTestCli([
'feed',
'upload',
'README.md',
'--identity',
identityName,
'README.md',
...getStampOption(),
])
const command = invocation.runnable as unknown as FeedUpload
Expand Down
2 changes: 1 addition & 1 deletion test/command/pinning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describeCommand(
expect(getLastMessage()).toBe('Reuploaded successfully.')
})

it.skip('should allow reuploading pinned folder', async () => {
it('should allow reuploading pinned folder', async () => {
const invocation = await invokeTestCli(['upload', 'test', '--pin', 'false', '--yes', ...getStampOption()])
const upload = invocation.runnable as Upload
const { hash } = upload
Expand Down
6 changes: 3 additions & 3 deletions test/command/stamp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describeCommand(
await System.sleepMillis(11_000)
})

it.skip('should print custom message when there are no stamps', async () => {
it('should print custom message when there are no stamps', async () => {
await invokeTestCli(['stamp', 'list', '--bee-api-url', 'http://localhost:11633'])
expect(getNthLastMessage(4)).toContain('You do not have any stamps.')
})
Expand Down Expand Up @@ -135,7 +135,7 @@ describeCommand(
await System.sleepMillis(11_000)
})

it.skip('should only be able to dilute stamp with greater depth', async () => {
it('should only be able to dilute stamp with greater depth', async () => {
const execution = await invokeTestCli([
'stamp',
'buy',
Expand All @@ -162,7 +162,7 @@ describeCommand(
expect(getNthLastMessage(3)).toContain('Dilute finished')
})

it.skip('should top up stamp', async () => {
it('should top up stamp', async () => {
const execution = await invokeTestCli([
'stamp',
'buy',
Expand Down

0 comments on commit f24fc69

Please sign in to comment.