aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-04-25 17:13:40 +0200
committerGitHub <[email protected]>2023-04-25 15:13:40 +0000
commit4d0458c96071917c8c3bb85fa61544caf8ff1763 (patch)
treef7c83eb2a0ffc9d1d960ce9af35c1261d8e1f08c /test
parent698fd7d909740bb9a9b7e9dfe822ef8632e3d4c6 (diff)
downloadfaker-4d0458c96071917c8c3bb85fa61544caf8ff1763.tar.xz
faker-4d0458c96071917c8c3bb85fa61544caf8ff1763.zip
fix: add support for equals on locale proxies (#2092)
Diffstat (limited to 'test')
-rw-r--r--test/locale-proxy.spec.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/locale-proxy.spec.ts b/test/locale-proxy.spec.ts
index 88ce9555..fcb97e34 100644
--- a/test/locale-proxy.spec.ts
+++ b/test/locale-proxy.spec.ts
@@ -7,6 +7,16 @@ describe('LocaleProxy', () => {
const locale = createLocaleProxy(en);
const enAirline = en.airline ?? { never: 'missing' };
+ describe('locale', () => {
+ it('should be possible to use equals on locale', () => {
+ expect(locale).toEqual(createLocaleProxy(en));
+ });
+
+ it('should be possible to use not equals on locale', () => {
+ expect(locale).not.toEqual(createLocaleProxy({}));
+ });
+ });
+
describe('category', () => {
it('should be possible to check for a missing category', () => {
expect('category' in locale).toBe(true);