Skip to content

Commit

Permalink
fix: unit tests tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Aug 11, 2023
1 parent 1535d1f commit 87c5e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function codegen(contractName, abi) {
'@wharfkit/session'
)
const importContractStatement = generateImportStatement(
['Contract as BaseContract', 'ContractArgs', 'PartialBy', 'blobStringToAbi'],
['ActionOptions', 'Contract as BaseContract', 'ContractArgs', 'PartialBy'],
'@wharfkit/contract'
)

Expand Down Expand Up @@ -117,5 +117,5 @@ export async function codegen(contractName, abi) {
)

const options = await prettier.resolveConfig(process.cwd())
return await prettier.format(printer.printFile(sourceFile), options)
return prettier.format(printer.printFile(sourceFile), options)
}
2 changes: 1 addition & 1 deletion test/tests/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {runGenericContractTests} from './contract'

suite('codegen', function () {
test('Contracts are identical', function () {
assert.equal(files.mock, files.generated)
assert.equal(files.generated, files.mock)
})
Object.keys(contracts).forEach((contractKey) => {
suite(`Testing namespace ${contractKey}`, function () {
Expand Down

0 comments on commit 87c5e97

Please sign in to comment.