@@ -23,21 +23,21 @@ describe('Util', () => {
2323 describe ( '#parseNamespace' , ( ) => {
2424 it ( 'should parse a tag without prefix attribute' , ( ) => {
2525 const attributes = { } ;
26- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
26+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
2727 } ) ;
2828
2929 it ( 'should parse a tag with empty prefix attribute' , ( ) => {
3030 const attributes = {
3131 prefix : '' ,
3232 } ;
33- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
33+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
3434 } ) ;
3535
3636 it ( 'should parse a tag with one prefix' , ( ) => {
3737 const attributes = {
3838 prefix : 'dc: http://purl.org/dc/terms/' ,
3939 } ;
40- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
40+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
4141 dc : 'http://purl.org/dc/terms/' ,
4242 } ) ;
4343 } ) ;
@@ -46,7 +46,7 @@ describe('Util', () => {
4646 const attributes = {
4747 prefix : 'dc: http://purl.org/dc/terms/ abc: http://example.org' ,
4848 } ;
49- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
49+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
5050 abc : 'http://example.org' ,
5151 dc : 'http://purl.org/dc/terms/' ,
5252 } ) ;
@@ -56,7 +56,7 @@ describe('Util', () => {
5656 const attributes = {
5757 prefix : 'dc: http://purl.org/dc/terms/ abc' ,
5858 } ;
59- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
59+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
6060 dc : 'http://purl.org/dc/terms/' ,
6161 } ) ;
6262 } ) ;
@@ -65,14 +65,14 @@ describe('Util', () => {
6565 const attributes = {
6666 prefix : 'dc: http://purl.org/dc/terms/ abc:' ,
6767 } ;
68- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
68+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
6969 dc : 'http://purl.org/dc/terms/' ,
7070 } ) ;
7171 } ) ;
7272
7373 it ( 'should parse a tag without prefix attribute that inherits parent prefixes' , ( ) => {
7474 const attributes = { } ;
75- await expect ( Util . parsePrefixes ( attributes , {
75+ expect ( Util . parsePrefixes ( attributes , {
7676 ex : 'http://example.org' ,
7777 } , false ) ) . toEqual ( {
7878 ex : 'http://example.org' ,
@@ -83,7 +83,7 @@ describe('Util', () => {
8383 const attributes = {
8484 prefix : '' ,
8585 } ;
86- await expect ( Util . parsePrefixes ( attributes , {
86+ expect ( Util . parsePrefixes ( attributes , {
8787 ex : 'http://example.org' ,
8888 } , false ) ) . toEqual ( {
8989 ex : 'http://example.org' ,
@@ -94,7 +94,7 @@ describe('Util', () => {
9494 const attributes = {
9595 prefix : 'dc: http://purl.org/dc/terms/' ,
9696 } ;
97- await expect ( Util . parsePrefixes ( attributes , {
97+ expect ( Util . parsePrefixes ( attributes , {
9898 ex : 'http://example.org' ,
9999 } , false ) ) . toEqual ( {
100100 dc : 'http://purl.org/dc/terms/' ,
@@ -106,7 +106,7 @@ describe('Util', () => {
106106 const attributes = {
107107 prefix : 'dc: http://purl.org/dc/terms/' ,
108108 } ;
109- await expect ( Util . parsePrefixes ( attributes , {
109+ expect ( Util . parsePrefixes ( attributes , {
110110 dc : 'http://example.org' ,
111111 } , false ) ) . toEqual ( {
112112 dc : 'http://purl.org/dc/terms/' ,
@@ -117,7 +117,7 @@ describe('Util', () => {
117117 const attributes = {
118118 prefix : 'dc: http://purl.org/dc/terms/\nex: \nhttp://example.org/' ,
119119 } ;
120- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
120+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( {
121121 dc : 'http://purl.org/dc/terms/' ,
122122 ex : 'http://example.org/' ,
123123 } ) ;
@@ -127,14 +127,14 @@ describe('Util', () => {
127127 const attributes = {
128128 'xmlns:ex' : 'http://example.org/' ,
129129 } ;
130- await expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
130+ expect ( Util . parsePrefixes ( attributes , { } , false ) ) . toEqual ( { } ) ;
131131 } ) ;
132132
133133 it ( 'should parse an xmlns attribute if xmlnsPrefixMappings is true' , ( ) => {
134134 const attributes = {
135135 'xmlns:ex' : 'http://example.org/' ,
136136 } ;
137- await expect ( Util . parsePrefixes ( attributes , { } , true ) ) . toEqual ( {
137+ expect ( Util . parsePrefixes ( attributes , { } , true ) ) . toEqual ( {
138138 ex : 'http://example.org/' ,
139139 } ) ;
140140 } ) ;
@@ -143,7 +143,7 @@ describe('Util', () => {
143143 const attributes = {
144144 'xmlns:ex' : 'http://example.org/' ,
145145 } ;
146- await expect ( Util . parsePrefixes ( attributes , { abc : 'def' } , true ) ) . toEqual ( {
146+ expect ( Util . parsePrefixes ( attributes , { abc : 'def' } , true ) ) . toEqual ( {
147147 abc : 'def' ,
148148 ex : 'http://example.org/' ,
149149 } ) ;
@@ -154,7 +154,7 @@ describe('Util', () => {
154154 prefix : 'ex: http://example.org/' ,
155155 'xmlns:ex' : 'http://exampleignored.org/' ,
156156 } ;
157- await expect ( Util . parsePrefixes ( attributes , { } , true ) ) . toEqual ( {
157+ expect ( Util . parsePrefixes ( attributes , { } , true ) ) . toEqual ( {
158158 ex : 'http://example.org/' ,
159159 } ) ;
160160 } ) ;
@@ -164,7 +164,7 @@ describe('Util', () => {
164164 prefix : 'ex: http://example.org/' ,
165165 'xmlns:ex' : 'http://exampleignored.org/' ,
166166 } ;
167- await expect ( Util . parsePrefixes ( attributes , { abc : 'def' } , true ) ) . toEqual ( {
167+ expect ( Util . parsePrefixes ( attributes , { abc : 'def' } , true ) ) . toEqual ( {
168168 abc : 'def' ,
169169 ex : 'http://example.org/' ,
170170 } ) ;
@@ -178,15 +178,15 @@ describe('Util', () => {
178178 dc : 'http://purl.org/dc/terms/' ,
179179 } ,
180180 } ;
181- await expect ( Util . expandPrefixedTerm ( 'dc:bla' , activeTag ) )
181+ expect ( Util . expandPrefixedTerm ( 'dc:bla' , activeTag ) )
182182 . toBe ( 'http://purl.org/dc/terms/bla' ) ;
183183 } ) ;
184184
185185 it ( 'should expand a term with empty prefix' , ( ) => {
186186 const activeTag : any = {
187187 prefixesAll : { } ,
188188 } ;
189- await expect ( Util . expandPrefixedTerm ( ':bla' , activeTag ) )
189+ expect ( Util . expandPrefixedTerm ( ':bla' , activeTag ) )
190190 . toBe ( 'http://www.w3.org/1999/xhtml/vocab#bla' ) ;
191191 } ) ;
192192
@@ -196,7 +196,7 @@ describe('Util', () => {
196196 term : 'http://purl.org/dc/terms/term' ,
197197 } ,
198198 } ;
199- await expect ( Util . expandPrefixedTerm ( 'term' , activeTag ) )
199+ expect ( Util . expandPrefixedTerm ( 'term' , activeTag ) )
200200 . toBe ( 'http://purl.org/dc/terms/term' ) ;
201201 } ) ;
202202
@@ -206,7 +206,7 @@ describe('Util', () => {
206206 dc : 'http://purl.org/dc/terms/' ,
207207 } ,
208208 } ;
209- await expect ( Util . expandPrefixedTerm ( 'bla:bla' , activeTag ) )
209+ expect ( Util . expandPrefixedTerm ( 'bla:bla' , activeTag ) )
210210 . toBe ( 'bla:bla' ) ;
211211 } ) ;
212212
@@ -216,7 +216,7 @@ describe('Util', () => {
216216 dc : 'http://purl.org/dc/terms/' ,
217217 } ,
218218 } ;
219- await expect ( Util . expandPrefixedTerm ( 'http://example.org/bla' , activeTag ) )
219+ expect ( Util . expandPrefixedTerm ( 'http://example.org/bla' , activeTag ) )
220220 . toBe ( 'http://example.org/bla' ) ;
221221 } ) ;
222222
@@ -226,7 +226,7 @@ describe('Util', () => {
226226 dc : 'http://purl.org/dc/terms/' ,
227227 } ,
228228 } ;
229- await expect ( Util . expandPrefixedTerm ( 'bla' , activeTag ) ) . toBe ( 'bla' ) ;
229+ expect ( Util . expandPrefixedTerm ( 'bla' , activeTag ) ) . toBe ( 'bla' ) ;
230230 } ) ;
231231
232232 it ( 'should not expand an empty term' , ( ) => {
@@ -235,38 +235,38 @@ describe('Util', () => {
235235 '' : 'http://purl.org/dc/terms/' ,
236236 } ,
237237 } ;
238- await expect ( Util . expandPrefixedTerm ( '' , activeTag ) ) . toBe ( '' ) ;
238+ expect ( Util . expandPrefixedTerm ( '' , activeTag ) ) . toBe ( '' ) ;
239239 } ) ;
240240 } ) ;
241241
242242 describe ( '#contentTypeToProfile' , ( ) => {
243243 it ( 'should return empty string for an unknown content type' , ( ) => {
244- await expect ( Util . contentTypeToProfile ( 'text/unknown' ) )
244+ expect ( Util . contentTypeToProfile ( 'text/unknown' ) )
245245 . toBe ( '' ) ;
246246 } ) ;
247247
248248 it ( 'should return html for text/html' , ( ) => {
249- await expect ( Util . contentTypeToProfile ( 'text/html' ) )
249+ expect ( Util . contentTypeToProfile ( 'text/html' ) )
250250 . toBe ( 'html' ) ;
251251 } ) ;
252252
253253 it ( 'should return xhtml for application/xhtml+xml' , ( ) => {
254- await expect ( Util . contentTypeToProfile ( 'application/xhtml+xml' ) )
254+ expect ( Util . contentTypeToProfile ( 'application/xhtml+xml' ) )
255255 . toBe ( 'xhtml' ) ;
256256 } ) ;
257257
258258 it ( 'should return xml for application/xml' , ( ) => {
259- await expect ( Util . contentTypeToProfile ( 'application/xml' ) )
259+ expect ( Util . contentTypeToProfile ( 'application/xml' ) )
260260 . toBe ( 'xml' ) ;
261261 } ) ;
262262
263263 it ( 'should return xml for text/xml' , ( ) => {
264- await expect ( Util . contentTypeToProfile ( 'text/xml' ) )
264+ expect ( Util . contentTypeToProfile ( 'text/xml' ) )
265265 . toBe ( 'xml' ) ;
266266 } ) ;
267267
268268 it ( 'should return xml for image/svg+xml' , ( ) => {
269- await expect ( Util . contentTypeToProfile ( 'image/svg+xml' ) )
269+ expect ( Util . contentTypeToProfile ( 'image/svg+xml' ) )
270270 . toBe ( 'xml' ) ;
271271 } ) ;
272272 } ) ;
0 commit comments