Skip to content

Commit

Permalink
refactor: done cleaning the API usage in 123
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Mar 31, 2023
1 parent 85f7943 commit 3b1e717
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tests/t0123_gateway_json_cbor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ import (
func TestGatewayJsonCbor(t *testing.T) {
fixture := car.MustOpenUnixfsCar("t0123-gateway-json-cbor.car")

dirCID := fixture.MustGetCid() // root dir
fileJSONCID := fixture.MustGetCid("ą", "ę", "t.json")
fileJSONData := fixture.MustGetRawData("ą", "ę", "t.json")
fileCID := fixture.MustGetCid("ą", "ę", "file-źł.txt")
fileSize := len(fixture.MustGetRawData("ą", "ę", "file-źł.txt"))

fmt.Println("rootDirCID:", dirCID)
fmt.Println("fileJSONCID:", fileJSONCID)
fmt.Println("fileJSONData:", fileJSONData)
fmt.Println("fileCID:", fileCID)
fmt.Println("fileSize:", fileSize)
fileJSON := fixture.MustGetNode("ą", "ę", "t.json")
fileJSONCID := fileJSON.Cid()
fileJSONData := fileJSON.RawData()

tests := SugarTests{
{
Expand Down

0 comments on commit 3b1e717

Please sign in to comment.