@@ -10,6 +10,7 @@ import { schemaRequestHandler, workspaceContext } from '../src/languageservice/s
1010import { TestTelemetry } from './utils/testsTypes' ;
1111import { YAMLServerInit } from '../src/yamlServerInit' ;
1212import * as l10n from '@vscode/l10n' ;
13+ import * as path from 'path' ;
1314
1415describe ( 'Bundle l10n Test' , ( ) => {
1516 let serverInit : YAMLServerInit ;
@@ -44,6 +45,9 @@ describe('Bundle l10n Test', () => {
4445 processId : 0 ,
4546 rootUri : '' ,
4647 capabilities : undefined ,
48+ initializationOptions : {
49+ l10nPath : path . join ( __dirname , '../l10n' ) ,
50+ } ,
4751 } ) ;
4852 } ) ;
4953
@@ -54,6 +58,9 @@ describe('Bundle l10n Test', () => {
5458 processId : 0 ,
5559 rootUri : '' ,
5660 capabilities : undefined ,
61+ initializationOptions : {
62+ l10nPath : path . join ( __dirname , '../l10n' ) ,
63+ } ,
5764 } ) ;
5865 assert . equal ( l10n . t ( 'Default Value' ) , 'Valeur par défaut' ) ;
5966 } ) ;
@@ -64,6 +71,9 @@ describe('Bundle l10n Test', () => {
6471 processId : 0 ,
6572 rootUri : '' ,
6673 capabilities : undefined ,
74+ initializationOptions : {
75+ l10nPath : path . join ( __dirname , '../l10n' ) ,
76+ } ,
6777 } ) ;
6878 assert . equal ( l10n . t ( 'Default Value' ) , 'Default value' ) ;
6979 } ) ;
0 commit comments