1- import { Element } from './Element' ;
1+ import { describe , expect , it } from 'vitest' ;
2+ import { XmlElement } from './XmlElement' ;
23
34describe ( '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