diff --git a/src/__tests__/mapping-templates.test.ts b/src/__tests__/mapping-templates.test.ts index 9870b087..29fe3394 100644 --- a/src/__tests__/mapping-templates.test.ts +++ b/src/__tests__/mapping-templates.test.ts @@ -128,7 +128,7 @@ describe('Mapping Templates', () => { expect(function () { mapping.compile(); }).toThrowErrorMatchingInlineSnapshot( - `"Mapping tempalte file 'foo.vtl' does not exist"`, + `"Mapping template file 'foo.vtl' does not exist"`, ); }); }); diff --git a/src/__tests__/resolvers.test.ts b/src/__tests__/resolvers.test.ts index 55439d64..e441b740 100644 --- a/src/__tests__/resolvers.test.ts +++ b/src/__tests__/resolvers.test.ts @@ -722,7 +722,7 @@ describe('Resolvers', () => { `); }); - it('should generate Pipeline Function Resources with VTL mapping tempaltes', () => { + it('should generate Pipeline Function Resources with VTL mapping templates', () => { const api = new Api( given.appSyncConfig({ dataSources: { diff --git a/src/resources/MappingTemplate.ts b/src/resources/MappingTemplate.ts index 36bc78c6..b50e9b8d 100644 --- a/src/resources/MappingTemplate.ts +++ b/src/resources/MappingTemplate.ts @@ -14,7 +14,7 @@ export class MappingTemplate { compile(): string | IntrinsicFunction { if (!fs.existsSync(this.config.path)) { throw new this.api.plugin.serverless.classes.Error( - `Mapping tempalte file '${this.config.path}' does not exist`, + `Mapping template file '${this.config.path}' does not exist`, ); }