@@ -6,15 +6,6 @@ import { transformVTDirective } from '../src/transform'
6
6
import { getReportMessage , ReportCodes } from '../src/report'
7
7
import { mount } from './helper'
8
8
9
- function getMessage ( code : ReportCodes , ...args : unknown [ ] ) {
10
- return `[vue-i18n-extensions] ${ getReportMessage ( code , ...args ) } `
11
- }
12
-
13
- let spyWarn : ReturnType < typeof vi . spyOn >
14
- beforeEach ( ( ) => {
15
- spyWarn = vi . spyOn ( global . console , 'warn' ) as ReturnType < typeof vi . spyOn >
16
- } )
17
-
18
9
afterEach ( ( ) => {
19
10
// vi.clearAllMocks()
20
11
// vi.resetAllMocks()
@@ -77,22 +68,6 @@ describe('binding', () => {
77
68
} )
78
69
} )
79
70
80
- test ( 'preserve modifier' , ( ) => {
81
- spyWarn . mockImplementation ( ( ) => { } )
82
-
83
- const transformVT = transformVTDirective ( )
84
- const source = `<div v-t.preserve="'hello'"/>`
85
- const { code, ast } = compile ( source , {
86
- mode : 'function' ,
87
- hoistStatic : false ,
88
- prefixIdentifiers : true ,
89
- directiveTransforms : { t : transformVT }
90
- } )
91
- expect ( code ) . toMatchSnapshot ( source )
92
- expect ( ast ) . toMatchSnapshot ( source )
93
- expect ( spyWarn . mock . calls [ 0 ] [ 0 ] ) . toEqual ( getMessage ( ReportCodes . NOT_SUPPORTED_PRESERVE , source ) )
94
- } )
95
-
96
71
test ( 'no specify' , ( ) => {
97
72
const transformVT = transformVTDirective ( )
98
73
const source = `<div v-t=""/>`
0 commit comments