Skip to content

Commit d02cf3d

Browse files
committed
fix: element UTs
1 parent 96a0b59 commit d02cf3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/unit/els_test.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ describe('els', function () {
4141
elementUsed = await el
4242
})
4343

44-
assert.equal(elementUsed, 'el1')
44+
if (elementUsed) {
45+
assert.equal(elementUsed, 'el1')
46+
}
4547
})
4648

4749
it('should work without purpose parameter', async () => {
@@ -52,7 +54,9 @@ describe('els', function () {
5254
elementUsed = await el
5355
})
5456

55-
assert.equal(elementUsed, 'el1')
57+
if (elementUsed) {
58+
assert.equal(elementUsed, 'el1')
59+
}
5660
})
5761

5862
it('should throw error when no helper with _locate available', async () => {

0 commit comments

Comments
 (0)