Skip to content

Commit 48babc3

Browse files
committed
format code
1 parent 9e77c3b commit 48babc3

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

tee-worker/ts-tests/identity.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ describeLitentry('Test Identity', (context) => {
291291
assertIdentityRemoved(context.defaultSigner[1], substrate_extension_identity_removed);
292292
});
293293

294-
step('remove prime identity NOT allowed', async function () {
295-
// create substrate identity
294+
step('remove prime identity NOT allowed', async function () {
295+
// create substrate identity
296296
const [resp_substrate] = (await createIdentities(context, context.defaultSigner[0], aesKey, true, [substrateIdentity])) as IdentityGenericEvent[];
297297
assertIdentityCreated(context.defaultSigner[0], resp_substrate);
298298

@@ -338,18 +338,18 @@ describeLitentry('Test Identity', (context) => {
338338
const events = await listenEvent(context.substrate, 'identityManagement', ['StfError']);
339339
expect(events.length).to.be.equal(1);
340340
const result = events[0].method as string;
341-
});
341+
});
342342

343343
step('remove error identities', async function () {
344-
const identites = [twitterIdentity, ethereumIdentity, substrateIdentity];
344+
const identities = [twitterIdentity, ethereumIdentity, substrateIdentity];
345345

346346
//remove a nonexistent identity
347347
//context.defaultSigner[0] has aleady removed all identities in step('remove identities')
348348
const resp_not_exist_identities = (await removeErrorIdentities(
349349
context,
350350
context.defaultSigner[0],
351351
true,
352-
identites
352+
identities
353353
)) as string[];
354354

355355
await checkFailReason(resp_not_exist_identities, 'IdentityNotExist', true);
@@ -360,7 +360,7 @@ describeLitentry('Test Identity', (context) => {
360360
context,
361361
context.defaultSigner[2],
362362
true,
363-
identites
363+
identities
364364
)) as string[];
365365

366366
await checkFailReason(resp_not_created_identities, 'IdentityNotExist', true);

tee-worker/ts-tests/indirect_error_calls.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ export async function requestErrorVCs(
176176
txs.push({ tx, nonce: newNonce });
177177
}
178178

179-
180-
181179
await sendTxUntilInBlockList(context.substrate, txs, signer);
182180

183181
if (listening) {

tee-worker/ts-tests/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ export async function checkFailReason(
390390
expectedReason: string,
391391
isModule: boolean
392392
): Promise<boolean> {
393+
393394
let failReason = '';
394395

395396
response.map((item: any) => {

tee-worker/ts-tests/vc.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const assertion = <Assertion>{
2121
};
2222

2323

24-
// it doesn't make much difference test A1 only vs test A1 - A11, one VC type is enough.
24+
//It doesn't make much difference test A1 only vs test A1 - A11, one VC type is enough.
2525
//So only use A1 to trigger the wrong event
2626
describeLitentry('VC test', async (context) => {
2727
const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12';
@@ -31,7 +31,7 @@ describeLitentry('VC test', async (context) => {
3131
assert.equal(who, u8aToHex(context.defaultSigner[0].addressRaw), 'check caller error');
3232
});
3333
step('Request VC', async () => {
34-
// request all vc
34+
//request all vc
3535
const res = (await requestVCs(
3636
context,
3737
context.defaultSigner[0],

0 commit comments

Comments
 (0)