diff --git a/tests/e2e/cjs/index.test.js b/tests/e2e/cjs/index.test.js index dbb06d94..df128a53 100644 --- a/tests/e2e/cjs/index.test.js +++ b/tests/e2e/cjs/index.test.js @@ -406,28 +406,4 @@ describe('ANT', async () => { const record = await ant.getRecord({ undername: 'ardrive' }, { strict }); assert(record); }); - it(`should be able to read methods when strict is false`, async () => { - const strict = false; - const ant = ANT.init({ - processId, - ao: aoClient, - }); - const state = await ant.getState({ strict }); - assert(state); - const info = await ant.getInfo({ strict }); - assert(info); - const balance = await ant.getBalance( - { address: '7waR8v4STuwPnTck1zFVkQqJh5K9q9Zik4Y5-5dV7nk' }, - { strict }, - ); - assert(balance); - const balances = await ant.getBalances({ strict }); - assert(balances); - const controllers = await ant.getControllers({ strict }); - assert(controllers); - const records = await ant.getRecords({ strict }); - assert(records); - const record = await ant.getRecord({ undername: 'ardrive' }, { strict }); - assert(record); - }); }); diff --git a/tests/e2e/esm/index.test.js b/tests/e2e/esm/index.test.js index eff99b2b..a57145ac 100644 --- a/tests/e2e/esm/index.test.js +++ b/tests/e2e/esm/index.test.js @@ -399,7 +399,6 @@ describe('ANT', async () => { const processId = 'YcxE5IbqZYK72H64ELoysxiJ-0wb36deYPv55wgl8xo'; const ant = ANT.init({ processId, - strict: true, }); it('should be able to create ANTWriteable with valid signers', async () => { @@ -407,7 +406,7 @@ describe('ANT', async () => { const nonStrictAnt = ANT.init({ processId, signer, - strict: true, + strict: false, }); const strictAnt = ANT.init({ processId, @@ -421,17 +420,17 @@ describe('ANT', async () => { }); it('should be able to get ANT info', async () => { - const info = await ant.getInfo({ processId }); + const info = await ant.getInfo({ strict: true }); assert.ok(info); }); it('should be able to get the ANT records', async () => { - const records = await ant.getRecords({ processId }); + const records = await ant.getRecords({ strict: true }, { strict: true }); assert.ok(records); }); it('should be able to get a @ record from the ANT', async () => { - const record = await ant.getRecord({ undername: '@' }); + const record = await ant.getRecord({ undername: '@' }, { strict: true }); assert.ok(record); }); @@ -456,19 +455,22 @@ describe('ANT', async () => { }); it('should be able to get the ANT state', async () => { - const state = await ant.getState(); + const state = await ant.getState({ strict: true }); assert.ok(state); }); it('should be able to get the ANT balance for an address', async () => { - const balance = await ant.getBalance({ - address: '"7waR8v4STuwPnTck1zFVkQqJh5K9q9Zik4Y5-5dV7nk', - }); + const balance = await ant.getBalance( + { + address: '7waR8v4STuwPnTck1zFVkQqJh5K9q9Zik4Y5-5dV7nk', + }, + { strict: true }, + ); assert.notEqual(balance, undefined); }); it('should be able to get the ANT balances', async () => { - const balances = await ant.getBalances(); + const balances = await ant.getBalances({ strict: true }); assert.ok(balances); }); });