From f24fc690e57aebaddc267032914b145de72182f5 Mon Sep 17 00:00:00 2001 From: Cafe137 Date: Mon, 16 Sep 2024 22:59:24 +0200 Subject: [PATCH] test: remove skip from all tests --- test/command/manifest.spec.ts | 32 ++++++++++++++++---------------- test/command/pinning.spec.ts | 2 +- test/command/stamp.spec.ts | 6 +++--- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/test/command/manifest.spec.ts b/test/command/manifest.spec.ts index 6cc4630f..6e6709a1 100644 --- a/test/command/manifest.spec.ts +++ b/test/command/manifest.spec.ts @@ -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 @@ -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 @@ -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 @@ -63,7 +63,7 @@ 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 @@ -71,7 +71,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining 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 @@ -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']) @@ -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() @@ -124,7 +124,7 @@ 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 @@ -132,7 +132,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining 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 @@ -140,7 +140,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining 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 @@ -148,7 +148,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining 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 @@ -156,7 +156,7 @@ describeCommand('Test Upload command', ({ consoleMessages, hasMessageContaining 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 @@ -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']) @@ -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']) @@ -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']) @@ -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 diff --git a/test/command/pinning.spec.ts b/test/command/pinning.spec.ts index 28148169..8734464e 100644 --- a/test/command/pinning.spec.ts +++ b/test/command/pinning.spec.ts @@ -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 diff --git a/test/command/stamp.spec.ts b/test/command/stamp.spec.ts index 012bac62..2c428fe2 100644 --- a/test/command/stamp.spec.ts +++ b/test/command/stamp.spec.ts @@ -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.') }) @@ -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', @@ -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',