Skip to content

Commit 5a2b730

Browse files
committed
Fix broken unit tests due to model changes.
1 parent b0cc132 commit 5a2b730

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
pin_count: 7,
33
pin_size_total: 123,
4-
pin_size_with_replications_total: 456
4+
pin_size_with_replications_total: 456,
5+
IsSuccess: true
56
}

Source/Pinata.Client.Tests/PinningTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public async Task pin_json_content_with_options()
6161

6262
var r = await this.client.Pinning.PinJsonToIpfsAsync(content, meta, opts);
6363

64-
var expectedBody = @"{""pinataContent"":{""hello"":""world""},""pinataOptions"":{""cidVersion"":1,""customPinPolicy"":{""regions"":[{""id"":""FRA1"",""desiredReplicationCount"":1}]}},""pinataMetadata"":{""name"":""hello"",""keyvalues"":{""someKey"":""someValue""}}}";
64+
var expectedBody = @"{""pinataContent"":{""hello"":""world""},""pinataOptions"":{""cidVersion"":1,""customPinPolicy"":{""regions"":[{""id"":""FRA1"",""desiredReplicationCount"":1}]},""wrapWithDirectory"":null},""pinataMetadata"":{""name"":""hello"",""keyvalues"":{""someKey"":""someValue""}}}";
6565

6666
this.server.ShouldHaveCalledPath("/pinning/pinJSONToIPFS")
6767
.WithVerb(Post)
@@ -110,7 +110,7 @@ public async Task pin_json_object_with_options()
110110
};
111111
var r = await this.client.Pinning.PinJsonToIpfsAsync(body, meta, opts);
112112

113-
var expectedBody = @"{""pinataOptions"":{""cidVersion"":1,""customPinPolicy"":{""regions"":[{""id"":""FRA1"",""desiredReplicationCount"":1}]}},""pinataMetadata"":{""name"":""hello"",""keyvalues"":{""someKey"":""someValue""}},""pinataContent"":{""hello"":""world""}}";
113+
var expectedBody = @"{""pinataOptions"":{""cidVersion"":1,""customPinPolicy"":{""regions"":[{""id"":""FRA1"",""desiredReplicationCount"":1}]},""wrapWithDirectory"":null},""pinataMetadata"":{""name"":""hello"",""keyvalues"":{""someKey"":""someValue""}},""pinataContent"":{""hello"":""world""}}";
114114
this.server.ShouldHaveCalledPath("/pinning/pinJSONToIPFS")
115115
.WithVerb(Post)
116116
.WithExactBody(expectedBody);

0 commit comments

Comments
 (0)