From b7dc97a2196ab64c80a9727e5176c1ecd7fb0c4a Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 5 Mar 2024 00:05:51 -0600 Subject: [PATCH] refactor: follow X.proposal.js pattern --- .../{start-postalSvc.js => postal-service.proposal.js} | 0 contract/test/test-postalSvc.js | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename contract/src/{start-postalSvc.js => postal-service.proposal.js} (100%) diff --git a/contract/src/start-postalSvc.js b/contract/src/postal-service.proposal.js similarity index 100% rename from contract/src/start-postalSvc.js rename to contract/src/postal-service.proposal.js diff --git a/contract/test/test-postalSvc.js b/contract/test/test-postalSvc.js index 534ac3d3..34012a90 100644 --- a/contract/test/test-postalSvc.js +++ b/contract/test/test-postalSvc.js @@ -7,7 +7,7 @@ import { createRequire } from 'module'; import { E, passStyleOf } from '@endo/far'; import { AmountMath } from '@agoric/ertp/src/amountMath.js'; -import { startPostalService } from '../src/start-postalSvc.js'; +import { startPostalService } from '../src/postal-service.proposal.js'; import { bootAndInstallBundles, makeMockTools } from './boot-tools.js'; import { makeBundleCacheContext, getBundleId } from './bundle-tools.js'; import { mockWalletFactory } from './wallet-tools.js'; @@ -28,11 +28,11 @@ const test = anyTest; const nodeRequire = createRequire(import.meta.url); const bundleRoots = { - postalSvc: nodeRequire.resolve('../src/postalSvc.js'), + postalService: nodeRequire.resolve('../src/postal-service.contract.js'), }; const scriptRoots = { - postalSvc: nodeRequire.resolve('../src/start-postalSvc.js'), + postalService: nodeRequire.resolve('../src/postal-service.proposal.js'), }; /** @param {import('ava').ExecutionContext} t */ @@ -176,7 +176,7 @@ test('send invitation* from contract using publicFacet of postalService', async { zoe, namesByAddressAdmin }, smartWalletIssuers, ); - /** @type {import('../src/start-postalSvc.js').PostalServicePowers} */ + /** @type {import('../src/postal-service.proposal.js').PostalServicePowers} */ // @ts-expect-error cast const postalSpace = powers; const instance = await postalSpace.instance.consume.postalService;