Skip to content

Commit 1a30d72

Browse files
committed
fix: format code
1 parent 449b21a commit 1a30d72

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

packages/sdk/tests/e2e/dataProtectorCore/getProtectedData.test.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,33 @@ describe('dataProtectorCore.getProtectedData()', () => {
106106
);
107107
});
108108

109-
describe("When calling getProtectedData for a ProtectedData that contains nested empty JSON objects", () => {
110-
it(
111-
'should return the protectedData without the field corresponding to the nested empty JSON objects',
112-
async () => {
113-
// --- GIVEN
114-
const createdProtectedData = await dataProtectorCore.protectData({
115-
data: { email: '[email protected]', tag: { size: 10, emptyObject: {} } },
116-
name: 'test getProtectedData',
117-
});
118-
await waitForSubgraphIndexing();
109+
describe('When calling getProtectedData for a ProtectedData that contains nested empty JSON objects', () => {
110+
it('should return the protectedData without the field corresponding to the nested empty JSON objects', async () => {
111+
// --- GIVEN
112+
const createdProtectedData = await dataProtectorCore.protectData({
113+
data: {
114+
115+
tag: { size: 10, emptyObject: {} },
116+
},
117+
name: 'test getProtectedData',
118+
});
119+
await waitForSubgraphIndexing();
119120

120-
// --- WHEN
121-
const result = await dataProtectorCore.getProtectedData({
122-
protectedDataAddress: createdProtectedData.address,
123-
});
121+
// --- WHEN
122+
const result = await dataProtectorCore.getProtectedData({
123+
protectedDataAddress: createdProtectedData.address,
124+
});
124125

125-
// --- THEN
126-
expect(result.length).toEqual(1);
127-
expect(result[0].name).toEqual('test getProtectedData');
128-
expect(result[0].schema).toEqual({
129-
email: 'string',
130-
tag: {
131-
size: 'f64',
132-
},
133-
});
134-
}
135-
);
126+
// --- THEN
127+
expect(result.length).toEqual(1);
128+
expect(result[0].name).toEqual('test getProtectedData');
129+
expect(result[0].schema).toEqual({
130+
email: 'string',
131+
tag: {
132+
size: 'f64',
133+
},
134+
});
135+
});
136136
});
137137

138138
describe('When calling getProtectedData with a specific owner', () => {

packages/sdk/tests/e2e/dataProtectorCore/protectData.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('dataProtectorCore.protectData()', () => {
7575
binary: {
7676
data: {
7777
pngImage: 'image/png',
78-
},
78+
},
7979
},
8080
},
8181
},

0 commit comments

Comments
 (0)