mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
chore: Change the first test to use the withValue instead of the empty, easier to understand.
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user