-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to oclif/core v4 and oclif/test v4
- Loading branch information
Showing
33 changed files
with
1,952 additions
and
2,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:##__ACTION_ID__##', () => { | ||
test | ||
.timeout(##__SPEC_TIMEOUT__##) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(##__SPEC_TIMEOUT__##) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:approve', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:approve_and_capture', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:archive', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
16 changes: 8 additions & 8 deletions
16
test/commands/orders/authorization_amount_ce.test.ts.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:authorization_amount_cents', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:authorize', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:billing_address_clone_id', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
16 changes: 8 additions & 8 deletions
16
test/commands/orders/billing_address_same_as_shipping.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:billing_address_same_as_shipping', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:cancel', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:capture', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:commit_invoice', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:create_subscriptions', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:customer_payment_source_id', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:fulfill', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:nullify_payment_source', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:pending', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { expect, test } from '@oclif/test' | ||
import { expect } from 'chai' | ||
import { runCommand } from '@oclif/test' | ||
|
||
|
||
describe('orders:place', () => { | ||
test | ||
.timeout(30000) | ||
.stdout() | ||
.command(['orders:noc']) | ||
.it('runs NoC', ctx => { | ||
expect(ctx.stdout).to.contain('-= NoC =-') | ||
}) | ||
it('runs NoC', async () => { | ||
const { stdout } = await runCommand<{ name: string }>(['orders:noc']) | ||
expect(stdout).to.contain('-= NoC =-') | ||
}).timeout(30000) | ||
}) | ||
|
Oops, something went wrong.