Skip to content

Commit

Permalink
test(dev-cli): use UP in test stubs #243
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Dec 21, 2023
1 parent e427c2d commit 3c37c10
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dev-cli/container/src/node/test/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('uploadModuleWith', () => {
artifactExists: async () => ({ foo: 'bar' }),
readWallet: async () => ({ id: 'id-123' }),
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => ({ params, id: '123' })
[SUPPORTED_BUNDLERS.UP]: async (params) => ({ params, id: '123' })
}
}

Expand All @@ -55,7 +55,7 @@ describe('uploadModuleWith', () => {
const upload = uploadModuleWith({
...happy,
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
/**
* custom tag, plus default tags, then only use
* the first Module-Format tag
Expand All @@ -82,7 +82,7 @@ describe('uploadModuleWith', () => {
const upload = uploadModuleWith({
...happy,
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
/**
* custom tag, plus default tags, then only use
* the first Input-Encoding tag
Expand All @@ -109,7 +109,7 @@ describe('uploadModuleWith', () => {
const upload = uploadModuleWith({
...happy,
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
/**
* custom tag, plus default tags, then only use
* the first Input-Encoding tag
Expand Down Expand Up @@ -152,7 +152,7 @@ describe('uploadModuleWith', () => {
const upload = uploadModuleWith({
...happy,
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: (params) => {
[SUPPORTED_BUNDLERS.UP]: (params) => {
assert.deepStrictEqual(params, {
path: '/path/to/artifact.wasm',
wallet: { id: 'id-123' },
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('uploadModuleWith', () => {
const upload = uploadModuleWith({
...happy,
uploaders: {
[SUPPORTED_BUNDLERS.IRYS]: (params) => {
[SUPPORTED_BUNDLERS.UP]: (params) => {
assert.deepStrictEqual(params, {
path: '/path/to/artifact.wasm',
wallet: { id: 'id-123' },
Expand Down Expand Up @@ -316,7 +316,7 @@ describe('checkBalanceWith', () => {
walletExists: async () => true,
readWallet: async () => ({ id: 'id-123' }),
balancers: {
[SUPPORTED_BUNDLERS.IRYS]: async () => ({ balance: 123 })
[SUPPORTED_BUNDLERS.UP]: async () => ({ balance: 123 })
}
}

Expand All @@ -335,7 +335,7 @@ describe('checkBalanceWith', () => {
const balance = checkBalanceWith({
...happy,
balancers: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
assert.deepStrictEqual(params, {
wallet: { id: 'id-123' },
to: DEFAULT_BUNDLER_HOST
Expand All @@ -355,7 +355,7 @@ describe('checkBalanceWith', () => {
const balance = checkBalanceWith({
...happy,
balancers: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
assert.deepStrictEqual(params, {
wallet: { id: 'id-123' },
to: DEFAULT_BUNDLER_HOST
Expand Down Expand Up @@ -398,7 +398,7 @@ describe('fundWith', () => {
walletExists: async () => true,
readWallet: async () => ({ id: 'id-123' }),
funders: {
[SUPPORTED_BUNDLERS.IRYS]: async () => ({ id: '123' })
[SUPPORTED_BUNDLERS.UP]: async () => ({ id: '123' })
}
}

Expand All @@ -418,7 +418,7 @@ describe('fundWith', () => {
const fund = fundWith({
...happy,
funders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
assert.deepStrictEqual(params, {
wallet: { id: 'id-123' },
to: DEFAULT_BUNDLER_HOST,
Expand All @@ -440,7 +440,7 @@ describe('fundWith', () => {
const fund = fundWith({
...happy,
funders: {
[SUPPORTED_BUNDLERS.IRYS]: async (params) => {
[SUPPORTED_BUNDLERS.UP]: async (params) => {
assert.deepStrictEqual(params, {
wallet: { id: 'id-123' },
to: DEFAULT_BUNDLER_HOST,
Expand Down

0 comments on commit 3c37c10

Please sign in to comment.