File tree Expand file tree Collapse file tree 3 files changed +20
-20
lines changed Expand file tree Collapse file tree 3 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 6767 "@changesets/cli" : " ^2.27.10" ,
6868 "@changesets/get-release-plan" : " ^4.0.5" ,
6969 "@ota-meshi/eslint-plugin" : " ^0.17.6" ,
70+ "@ota-meshi/test-snapshot" : " ^1.1.0" ,
7071 "@types/benchmark" : " ^2.1.5" ,
7172 "@types/chai" : " ^5.0.0" ,
7273 "@types/eslint" : " ^9.6.1" ,
100101 "locate-character" : " ^3.0.0" ,
101102 "magic-string" : " ^0.30.14" ,
102103 "mocha" : " ^11.0.0" ,
103- "mocha-chai-jest-snapshot" : " ^1.1.6" ,
104104 "prettier" : " ~3.4.1" ,
105105 "prettier-plugin-pkg" : " ^0.18.1" ,
106106 "prettier-plugin-svelte" : " ^3.3.2" ,
Original file line number Diff line number Diff line change 1- // Jest Snapshot v1, https://goo.gl/fbAQLP
1+ // test-snapshot v1
22
33exports [` parseAttributes (empty) 1` ] = `
44Object {
@@ -106,6 +106,21 @@ Object {
106106}
107107`;
108108
109+ exports[`parseAttributes attr 1`] = `
110+ Object {
111+ " attributes" : Array [
112+ Object {
113+ " end" : 4 ,
114+ " name" : " attr" ,
115+ " start" : 0 ,
116+ " type" : " Attribute" ,
117+ " value" : true ,
118+ },
119+ ],
120+ " index" : 4 ,
121+ }
122+ `;
123+
109124exports[`parseAttributes attr 1`] = `
110125Object {
111126 " attributes" : Array [
@@ -144,21 +159,6 @@ Object {
144159}
145160`;
146161
147- exports[`parseAttributes attr 1`] = `
148- Object {
149- " attributes" : Array [
150- Object {
151- " end" : 4 ,
152- " name" : " attr" ,
153- " start" : 0 ,
154- " type" : " Attribute" ,
155- " value" : true ,
156- },
157- ],
158- " index" : 4 ,
159- }
160- `;
161-
162162exports[`parseAttributes attr="value" 1`] = `
163163Object {
164164 " attributes" : Array [
Original file line number Diff line number Diff line change 11import * as chai from "chai" ;
2- import { jestSnapshotPlugin } from "mocha-chai-jest- snapshot" ;
2+ import { chaiPlugin } from "@ota-meshi/test- snapshot/chai " ;
33
4- import { parseAttributes } from "../../../src/parser/html" ;
4+ import { parseAttributes } from "../../../src/parser/html.js " ;
55
6- chai . use ( jestSnapshotPlugin ( ) ) ;
6+ chai . use ( chaiPlugin ) ;
77describe ( "parseAttributes" , ( ) => {
88 const testCases = [
99 {
You can’t perform that action at this time.
0 commit comments