Skip to content

Commit

Permalink
test: align with latest defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kspeyanski committed Dec 21, 2023
1 parent babd13a commit 73cc23b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/cldr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ describe('load calendar', () => {
const patterns = cldr.bg.calendar.patterns;

expect(patterns.d).toEqual("d.MM.y 'г'.");
expect(patterns.D).toEqual("EEEE, d MMMM y 'г'.");
expect(patterns.F).toEqual("EEEE, d MMMM y 'г'. H:mm:ss 'ч'.");
expect(patterns.g).toEqual("d.MM.y 'г'. H:mm 'ч'.");
expect(patterns.G).toEqual("d.MM.y 'г'. H:mm:ss 'ч'.");
expect(patterns.t).toEqual("H:mm 'ч'.");
expect(patterns.T).toEqual("H:mm:ss 'ч'.");
expect(patterns.D).toEqual("EEEE, d MMMM y'г'.");
expect(patterns.F).toEqual("EEEE, d MMMM y'г'. H:mm:ss");
expect(patterns.g).toEqual("d.MM.y'г'. H:mm");
expect(patterns.G).toEqual("d.MM.y'г'. H:mm:ss");
expect(patterns.t).toEqual("H:mm");
expect(patterns.T).toEqual("H:mm:ss");
});

it('should set standard patterns', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/format.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ describe('format', () => {
});

it('formats values based on specified format and locale', () => {
expect(format("{0:d}-{1:c}", [new Date(2000, 0, 30), 10], "bg")).toEqual("30.01.2000 г.-10,00 лв.");
expect(format("{0:d}-{1:c}", [new Date(2000, 0, 30), 10], "bg")).toEqual("30.01.2000 г.-10,00 лв.");
});
});
2 changes: 1 addition & 1 deletion test/numbers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ describe('parseNumber', () => {
});

it("parses locale negative currency numbers", () => {
expect(parseNumber("-1 123 112,13 лв.", "bg")).toEqual(-1123112.13);
expect(parseNumber("-1 123 112,13 лв.", "bg")).toEqual(-1123112.13);
});

it("parses currency with custom format", () => {
Expand Down

0 comments on commit 73cc23b

Please sign in to comment.