@@ -6,7 +6,7 @@ import * as chaiAsPromised from "chai-as-promised";
66chai . use ( chaiAsPromised ) ;
77const expect = chai . expect ;
88import { load } from "./exportedApi" ;
9- import { mockAppConfigurationClientListConfigurationSettings , restoreMocks , createMockedConnectionString , createMockedEnpoint , createMockedTokenCredential , createMockedKeyValue } from "./utils/testHelper" ;
9+ import { mockAppConfigurationClientListConfigurationSettings , restoreMocks , createMockedConnectionString , createMockedEndpoint , createMockedTokenCredential , createMockedKeyValue } from "./utils/testHelper" ;
1010
1111const mockedKVs = [ {
1212 key : "app.settings.fontColor" ,
@@ -84,7 +84,7 @@ describe("load", function () {
8484 } ) ;
8585
8686 it ( "should load data from config store with aad + endpoint URL" , async ( ) => {
87- const endpoint = createMockedEnpoint ( ) ;
87+ const endpoint = createMockedEndpoint ( ) ;
8888 const credential = createMockedTokenCredential ( ) ;
8989 const settings = await load ( new URL ( endpoint ) , credential ) ;
9090 expect ( settings ) . not . undefined ;
@@ -93,7 +93,7 @@ describe("load", function () {
9393 } ) ;
9494
9595 it ( "should load data from config store with aad + endpoint string" , async ( ) => {
96- const endpoint = createMockedEnpoint ( ) ;
96+ const endpoint = createMockedEndpoint ( ) ;
9797 const credential = createMockedTokenCredential ( ) ;
9898 const settings = await load ( endpoint , credential ) ;
9999 expect ( settings ) . not . undefined ;
@@ -251,7 +251,7 @@ describe("load", function () {
251251 expect ( settings . get ( "TestKey" ) ) . eq ( "TestValueForProd" ) ;
252252 } ) ;
253253
254- it ( "should dedup exact same selectors but keeping the precedence" , async ( ) => {
254+ it ( "should deduplicate exact same selectors but keeping the precedence" , async ( ) => {
255255 const connectionString = createMockedConnectionString ( ) ;
256256 const settings = await load ( connectionString , {
257257 selectors : [ {
@@ -317,7 +317,7 @@ describe("load", function () {
317317 * key: "app3.settings.fontColor" => value: "yellow"
318318 *
319319 * get() will return "placeholder" for "app3.settings" and "yellow" for "app3.settings.fontColor", as expected.
320- * data.app3.settings will return "placeholder" as a whole JSON object, which is not guarenteed to be correct.
320+ * data.app3.settings will return "placeholder" as a whole JSON object, which is not guaranteed to be correct.
321321 */
322322 it ( "Edge case 1: Hierarchical key-value pairs with overlapped key prefix." , async ( ) => {
323323 const connectionString = createMockedConnectionString ( ) ;
@@ -337,7 +337,7 @@ describe("load", function () {
337337 * key: "app5.settings.fontColor" => value: "yellow"
338338 * key: "app5.settings" => value: "placeholder"
339339 *
340- * When ocnstructConfigurationObject () is called, it first constructs from key "app5.settings.fontColor" and then from key "app5.settings".
340+ * When constructConfigurationObject () is called, it first constructs from key "app5.settings.fontColor" and then from key "app5.settings".
341341 * An error will be thrown when constructing from key "app5.settings" because there is ambiguity between the two keys.
342342 */
343343 it ( "Edge case 1: Hierarchical key-value pairs with overlapped key prefix." , async ( ) => {
0 commit comments