chore: Change the first test to use the withValue instead of the empty, easier to understand.

This commit is contained in:
BluJ
2023-02-13 10:38:52 -07:00
parent c685e9e169
commit 8d8cf3b3a4

View File

@@ -15,20 +15,18 @@ test("Pointer", () => {
target: "tor-address";
interface: string;
};
} = Config.empty()
.addValue(
"peer-tor-address",
Value.pointer(
Pointer.packageTorAddress({
name: "Peer Tor Address",
description: "The Tor address of the peer interface",
"package-id": "bitcoind",
interface: "peer",
warning: null,
})
)
} = Config.withValue(
"peer-tor-address",
Value.pointer(
Pointer.packageTorAddress({
name: "Peer Tor Address",
description: "The Tor address of the peer interface",
"package-id": "bitcoind",
interface: "peer",
warning: null,
})
)
.build();
).build();
expect(JSON.stringify(bitcoinPropertiesBuilt)).toEqual(
/*json*/ `{
"peer-tor-address": {