Skip to content

Commit 1e5c384

Browse files
committed
chore(release): replace typo word supress
1 parent cffb19f commit 1e5c384

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const json = Formatter.jsonFormatter.format(errors);
192192
const jsonPretty = Formatter.jsonPrettyFormatter.format(errors);
193193
const grouped = Formatter.groupedFormatter.format(errors);
194194
const groupedMin = Formatter.groupedMinFormatter.format(errors);
195-
const supressed = Formatter.suppressedFormatter.format(errors);
195+
const suppressed = Formatter.suppressedFormatter.format(errors);
196196

197197
// do anything with all outputs...
198198
```

__tests__/src/formatters/supressed-formatter.spec.ts renamed to __tests__/src/formatters/suppressed-formatter.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { afterEach, beforeEach, describe, expect, it, spyOn } from 'bun:test';
22
import ERROR_MOCKS from '__tests__/_errors.mock';
33
import { Formatter, type FormatterOptions } from 'src/blueprints';
4-
import { supressedFormatter } from 'src/formatters';
4+
import { suppressedFormatter } from 'src/formatters';
55
import { defaultParser } from 'src/parsers';
66

77
const EXPECTED_OUTPUT = {
88
PRETTY: 'suppressed 10 tsc errors.',
99
NOT_PRETTY: 'suppressed 10 tsc errors.'
1010
};
1111

12-
describe('formatters > supressedFormatter', () => {
12+
describe('formatters > suppressedFormatter', () => {
1313
let options: FormatterOptions;
1414

1515
beforeEach(() => {
@@ -20,20 +20,20 @@ describe('formatters > supressedFormatter', () => {
2020
});
2121

2222
it('should be instance of Formatter', () => {
23-
expect(supressedFormatter).toBeInstanceOf(Formatter);
23+
expect(suppressedFormatter).toBeInstanceOf(Formatter);
2424
});
2525

2626
describe('output test', () => {
2727
describe('empty errors', () => {
2828
it('should return empty string', () => {
29-
expect(supressedFormatter.format('')).toBe('');
29+
expect(suppressedFormatter.format('')).toBe('');
3030
});
3131
});
3232

3333
describe('non-empty errors', () => {
3434
describe('pretty format enabled', () => {
3535
it('should return correctly', () => {
36-
expect(supressedFormatter.format(ERROR_MOCKS.PRETTY, options)).toBe(
36+
expect(suppressedFormatter.format(ERROR_MOCKS.PRETTY, options)).toBe(
3737
`${options.prefix}${EXPECTED_OUTPUT.PRETTY}${options.suffix}`
3838
);
3939
});
@@ -42,7 +42,7 @@ describe('formatters > supressedFormatter', () => {
4242
describe('pretty format disabled', () => {
4343
it('should return correctly', () => {
4444
expect(
45-
supressedFormatter.format(ERROR_MOCKS.NOT_PRETTY, options)
45+
suppressedFormatter.format(ERROR_MOCKS.NOT_PRETTY, options)
4646
).toBe(
4747
`${options.prefix}${EXPECTED_OUTPUT.NOT_PRETTY}${options.suffix}`
4848
);
@@ -65,7 +65,7 @@ describe('formatters > supressedFormatter', () => {
6565

6666
it('should call parse method from defaultParser instance', () => {
6767
expect(spyParse).toHaveBeenCalledTimes(0);
68-
supressedFormatter.format('');
68+
suppressedFormatter.format('');
6969
expect(spyParse).toHaveBeenCalledTimes(1);
7070
});
7171
});

src/formatters/suppressed-formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { defaultParser } from 'src/parsers/default-parser';
44
/**
55
* Suppressed `Formatter` instance.
66
*/
7-
export const supressedFormatter = new Formatter(
7+
export const suppressedFormatter = new Formatter(
88
defaultParser,
99
(parseResults) => {
1010
if (parseResults.length === 0) {

0 commit comments

Comments
 (0)