Skip to content

Commit

Permalink
fix: fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jan 31, 2025
1 parent 3356f63 commit 9610584
Show file tree
Hide file tree
Showing 32 changed files with 256 additions and 256 deletions.
16 changes: 8 additions & 8 deletions gen/templates/spec.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:##__ACTION_ID__##', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(##__SPEC_TIMEOUT__##)
test
.timeout(##__SPEC_TIMEOUT__##)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/approve.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:approve', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/approve_and_capture.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:approve_and_capture', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/archive.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:archive', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/authorization_amount_ce.test.ts.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:authorization_amount_cents', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/authorize.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:authorize', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/billing_address_clone_id.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:billing_address_clone_id', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/billing_address_same_as_shipping.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:billing_address_same_as_shipping', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/cancel.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:cancel', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/capture.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:capture', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/commit_invoice.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:commit_invoice', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/create_subscriptions.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:create_subscriptions', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/customer_payment_source_id.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:customer_payment_source_id', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/fix_payment_source.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:fix_payment_source', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/fulfill.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:fulfill', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/nullify_payment_source.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:nullify_payment_source', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/pending.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:pending', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/place.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:place', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/refresh.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:refresh', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

16 changes: 8 additions & 8 deletions test/commands/orders/refund.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import { runCommand } from '@oclif/test'

import { expect, test } from '@oclif/test'

describe('orders:refund', () => {
it('runs NoC', async () => {
const { stdout } = await runCommand<{ name: string }>(['orders:noc'])
expect(stdout).to.contain('-= NoC =-')
}).timeout(31000)
test
.timeout(31000)
.stdout()
.command(['orders:noc'])
.it('runs NoC', ctx => {
expect(ctx.stdout).to.contain('-= NoC =-')
})
})

Loading

0 comments on commit 9610584

Please sign in to comment.