Skip to content

Commit 0c44519

Browse files
author
cwanjau
committed
Fix linting issues
1 parent d0f60b6 commit 0c44519

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class AppConfigurationImporter {
9494
*/
9595
public async getConfigurationChanges(
9696
configSettingsSource: ConfigurationSettingsSource,
97-
strict: boolean = false,
97+
strict = false,
9898
importMode?: ImportMode,
9999
customHeadersOption?: OperationOptions
100100
): Promise<ConfigurationChanges> {

libraries/azure-app-configuration-importer/tests/appConfigurationImporter.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe("Call Import API to import configuration file to AppConfiguration", ()
240240
appConfigurationImporter = new AppConfigurationImporter(AppConfigurationClientStub);
241241
});
242242

243-
it("Succeed to get configuration changes with importMode as All, profile as default", async () => {
243+
it("Succeed to get configuration changes with importMode as All, profile as default", async () => {
244244
const options = {
245245
data: fs.readFileSync(path.join("__dirname", "../tests/sources/default.json")).toString(),
246246
format: ConfigurationFormat.Json,
@@ -256,7 +256,7 @@ describe("Call Import API to import configuration file to AppConfiguration", ()
256256
assert.equal(configurationChanges.Modified[0].key, "app:Settings:FontColor");
257257
});
258258

259-
it("Succeed to get configuration changes and return no matching key values updates with importMode as IgnoreMatch and profile as default", async () => {
259+
it("Succeed to get configuration changes and return no matching key values updates with importMode as IgnoreMatch and profile as default", async () => {
260260
const options = {
261261
data: fs.readFileSync(path.join("__dirname", "../tests/sources/default.json")).toString(),
262262
format: ConfigurationFormat.Json,
@@ -273,7 +273,7 @@ describe("Call Import API to import configuration file to AppConfiguration", ()
273273
assert.equal(configurationChanges.Deleted.length, 0);
274274
});
275275

276-
it("Succeed to get configuration changes from key-values file with importMode as All and profile as kvset", async () => {
276+
it("Succeed to get configuration changes from key-values file with importMode as All and profile as kvset", async () => {
277277
const options = {
278278
data: fs.readFileSync(path.join("__dirname", "../tests/sources/kvset.json")).toString(),
279279
format: ConfigurationFormat.Json,
@@ -288,7 +288,7 @@ describe("Call Import API to import configuration file to AppConfiguration", ()
288288
assert.equal(configurationChanges.Deleted.length, 0);
289289
});
290290

291-
it("Succeed to get configuration changes and return no matching key values with importMode as IgnoreMatch and profile as kvset", async () => {
291+
it("Succeed to get configuration changes and return no matching key values with importMode as IgnoreMatch and profile as kvset", async () => {
292292
const options = {
293293
data: fs.readFileSync(path.join("__dirname", "../tests/sources/kvset.json")).toString(),
294294
format: ConfigurationFormat.Json,
@@ -303,14 +303,14 @@ describe("Call Import API to import configuration file to AppConfiguration", ()
303303
assert.equal(configurationChanges.Deleted.length, 0);
304304
});
305305

306-
it("Fail when an invalid import mode is provided", async () => {
306+
it("Fail when an invalid import mode is provided", async () => {
307307
const options = {
308308
data: fs.readFileSync(path.join("__dirname", "../tests/sources/kvset.json")).toString(),
309309
format: ConfigurationFormat.Json,
310310
profile: ConfigurationProfile.KvSet
311311
};
312312
const stringConfigurationSource = new StringConfigurationSettingsSource(options);
313-
313+
314314
try {
315315
await appConfigurationImporter.getConfigurationChanges(stringConfigurationSource, false, 9 as unknown as ImportMode);
316316
}

libraries/azure-app-configuration-importer/tests/kvSetConfigurationSettingsConverter.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ describe("Parse kvset format file", () => {
222222
const configurationChanges = await appConfigurationImporter.getConfigurationChanges(stringConfigurationSource, true, ImportMode.All);
223223

224224
// The keys present in the store and not in the configuration file are deleted if strict is set to true
225-
const deletedKeys = configurationChanges.Deleted.map(d => `key: ${d.key}, label: ${d.label || ''}`);
225+
const deletedKeys = configurationChanges.Deleted.map(d => `key: ${d.key}, label: ${d.label}`);
226226
assert.equal(configurationChanges.Deleted.length, 5);
227227
assert.includeMembers(deletedKeys, [
228228
"key: app:Settings:FontSize, label: Dev",

0 commit comments

Comments
 (0)