Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Feb 13, 2024
1 parent e4d6cec commit 52084d5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions examples/HelloWorld/apps/Hello/bos.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"appAccount": "dummy.near",
"overrides": {
"testnet": {
"appAccount": "testing.testnet"
}
},
"aliases": {
"hello": "<h1>Hello, world! Have a nice day!</h1>"
}
Expand Down
7 changes: 6 additions & 1 deletion examples/Typescript/apps/Metadata/bos.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"appAccount": "dummy.near"
"appAccount": "dummy.near",
"overrides": {
"testnet": {
"appAccount": "testing.testnet"
}
}
}
5 changes: 5 additions & 0 deletions tests/config.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ test("reads the bos.config.json file correctly", () => {
const config = read_bos_config("testAppFolder");
expect(config).toEqual({
appAccount: "test",
overrides: {
testnet: {
appAccount: "testing.testnet"
}
},
aliases: { test: "testAlias", nui: "nui.near" },
});
});
5 changes: 5 additions & 0 deletions tests/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const folders = {
"./apps/testAppFolder": {
"bos.config.json": JSON.stringify({
appAccount: "test",
overrides: {
testnet: {
appAccount: "testing.testnet"
}
},
aliases: {
test: "testAlias",
nui: "nui.near",
Expand Down

0 comments on commit 52084d5

Please sign in to comment.