Skip to content

Commit

Permalink
add default test for asset controller
Browse files Browse the repository at this point in the history
  • Loading branch information
xzilja committed Aug 15, 2023
1 parent 7cb2745 commit 5f73052
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async function checkSdkVersion() {

if (wagmiConstants) {
const diff = await diffForFile(wagmiConstants)
if (!diff?.added.includes(`VERSION = ${corePackageJson.version}`)) {
if (!diff?.added.includes(`VERSION = '${corePackageJson.version}'`)) {
fail(`VERSION in ${wagmiConstantsPath} does not match latest packages/core version`)
}
} else {
Expand Down
14 changes: 14 additions & 0 deletions packages/core/tests/controllers/AssetController.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest'
import { AssetController } from '../../index.js'

// -- Tests --------------------------------------------------------------------
describe('AssetController', () => {
it('should have valid default state', () => {
expect(AssetController.state).toEqual({
walletImages: {},
networkImages: {},
connectorImages: {},
tokenImages: {}
})
})
})

0 comments on commit 5f73052

Please sign in to comment.