-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09ee7d6
commit 787c335
Showing
11 changed files
with
5,573 additions
and
3,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,7 @@ yarn-error.log | |
# IDE-specific directories | ||
.idea/ | ||
.vscode/ | ||
|
||
# Tests artifacts | ||
.coverage/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const common = { | ||
transform: { | ||
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }] | ||
}, | ||
rootDir: ".", | ||
setupFiles: ["./test/setup.ts"] | ||
}; | ||
|
||
module.exports = { | ||
collectCoverageFrom: ["./src/**/*.{js,ts}"], | ||
projects: [ | ||
{ | ||
displayName: "unit", | ||
...common, | ||
testMatch: ["<rootDir>/src/**/*.spec.ts"], | ||
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"] | ||
} | ||
] | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { faker } from "@faker-js/faker"; | ||
|
||
import { createAminoMessage } from "./pbclient"; | ||
import { messages } from "../stargate"; | ||
|
||
describe("createAminoMessage", () => { | ||
it("creates an amino message", () => { | ||
const message = faker.helpers.arrayElement(Object.values(messages)); | ||
const messageBody = "messageBody"; | ||
const result = createAminoMessage(message, messageBody); | ||
expect(result).toEqual({ | ||
typeUrl: message, | ||
value: messageBody | ||
}); | ||
}); | ||
}); |
File renamed without changes.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.