difftreelog
Fix tests for quartz and unique: remove global before
in: master
2 files changed
tests/src/adminTransferAndBurn.test.tsdiffbeforeafterboth242425let donor: IKeyringPair;25let donor: IKeyringPair;2627before(async () => {28 await usingPlaygrounds(async (_, privateKey) => {29 donor = privateKey('//Alice');30 });31});322633describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => {27describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => {34 let alice: IKeyringPair;28 let alice: IKeyringPair;35 let bob: IKeyringPair;29 let bob: IKeyringPair;36 let charlie: IKeyringPair;30 let charlie: IKeyringPair;373138 before(async () => {32 before(async () => {39 await usingPlaygrounds(async (helper) => {33 await usingPlaygrounds(async (helper, privateKey) => {34 donor = privateKey('//Alice');40 [alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor);35 [alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor);41 });36 });42 });37 });tests/src/allowLists.test.tsdiffbeforeafterboth242425let donor: IKeyringPair;25let donor: IKeyringPair;2627before(async () => {28 await usingPlaygrounds(async (_, privateKey) => {29 donor = privateKey('//Alice');30 });31});322633let alice: IKeyringPair;27let alice: IKeyringPair;34let bob: IKeyringPair;28let bob: IKeyringPair;37describe('Integration Test ext. Allow list tests', () => {31describe('Integration Test ext. Allow list tests', () => {383239 before(async () => {33 before(async () => {40 await usingPlaygrounds(async (helper) => {34 await usingPlaygrounds(async (helper, privateKey) => {35 donor = privateKey('//Alice');41 [alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);36 [alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);42 });37 });43 });38 });