Skip to content

Commit d794977

Browse files
committed
fix: update Element.test.ts imports for XmlElement rename and vitest globals
1 parent 02f5578 commit d794977

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/PHPUnit/Element.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Element } from './Element';
1+
import { describe, expect, it } from 'vitest';
2+
import { XmlElement } from './XmlElement';
23

34
describe('Element Test', () => {
45
it('querySelectorAll should traverse arrays', () => {
@@ -13,7 +14,7 @@ describe('Element Test', () => {
1314
}
1415
};
1516

16-
const element = new Element(data);
17+
const element = new XmlElement(data);
1718
const files = element.querySelectorAll('coverage project package file');
1819

1920
expect(files.length).toEqual(2);
@@ -40,7 +41,7 @@ describe('Element Test', () => {
4041
}
4142
};
4243

43-
const element = new Element(data);
44+
const element = new XmlElement(data);
4445

4546
const files1 = element.querySelectorAll('coverage project package file');
4647
expect(files1.length).toEqual(2);
@@ -54,7 +55,7 @@ describe('Element Test', () => {
5455

5556
it('getAttribute should retrieve values', () => {
5657
const data = { '@_version': '1.0' };
57-
const element = new Element(data);
58+
const element = new XmlElement(data);
5859
expect(element.getAttribute('version')).toEqual('1.0');
5960
});
6061
});

0 commit comments

Comments
 (0)