Skip to content

Commit

Permalink
refactor: follow X.proposal.js pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 5, 2024
1 parent 2863950 commit 5172ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions contract/test/test-postalSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -25,11 +25,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 */
Expand Down Expand Up @@ -173,7 +173,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;
Expand Down

0 comments on commit 5172ccd

Please sign in to comment.