Skip to content

Commit bdd553a

Browse files
committed
chore: typo
1 parent 96a666b commit bdd553a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/WebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ class WebpackConfig {
664664

665665
enableForkedTypeScriptTypesChecking(forkedTypeScriptTypesCheckOptionsCallback = () => {}) {
666666
if (this.useBabelTypeScriptPreset) {
667-
throw new Error('Encore.enableBabelTypeScriptPreset() can not be called when Encore.enableForkedTypeScriptTypesChecking() has been called.');
667+
throw new Error('Encore.enableForkedTypeScriptTypesChecking() can not be called when Encore.enableBabelTypeScriptPreset() has been called.');
668668
}
669669

670670
if (typeof forkedTypeScriptTypesCheckOptionsCallback !== 'function') {

test/WebpackConfig.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ describe('WebpackConfig object', () => {
873873
}).to.throw('must be a callback function');
874874
});
875875

876-
it('TypeScript can not be compiled by ts-loader is Babel is already handling TypeScript', () => {
876+
it('TypeScript can not be compiled by ts-loader if Babel is already handling TypeScript', () => {
877877
const config = createConfig();
878878
config.enableBabelTypeScriptPreset();
879879

@@ -903,11 +903,11 @@ describe('WebpackConfig object', () => {
903903

904904
it('TypeScript can not be compiled by Babel if forked types checking is enabled', () => {
905905
const config = createConfig();
906-
config.enableForkedTypeScriptTypesChecking();
906+
config.enableBabelTypeScriptPreset();
907907

908908
expect(function() {
909-
config.enableBabelTypeScriptPreset();
910-
}).to.throw('Encore.enableBabelTypeScriptPreset() can not be called when Encore.enableForkedTypeScriptTypesChecking() has been called.');
909+
config.enableForkedTypeScriptTypesChecking();
910+
}).to.throw('Encore.enableForkedTypeScriptTypesChecking() can not be called when Encore.enableBabelTypeScriptPreset() has been called.');
911911
});
912912
});
913913

0 commit comments

Comments
 (0)