From dc5b9392e59acae4b09a0976ba7ff09bbbac1415 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Sun, 25 Sep 2022 13:03:55 -0400 Subject: [PATCH 1/2] feat(science): add more units in en locale --- src/locales/en/science/unit.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/locales/en/science/unit.ts b/src/locales/en/science/unit.ts index 7390c983d33..005735e9a13 100644 --- a/src/locales/en/science/unit.ts +++ b/src/locales/en/science/unit.ts @@ -87,4 +87,32 @@ export default Object.freeze([ name: 'sievert', symbol: 'Sv', }, + { + name: 'steradian', + symbol: 'sr', + }, + { + name: 'farad', + symbol: 'F', + }, + { + name: 'siemens', + symbol: 'S', + }, + { + name: 'weber', + symbol: 'Wb', + }, + { + name: 'henry', + symbol: 'H', + }, + { + name: 'lux', + symbol: 'lx', + }, + { + name: 'katal', + symbol: 'kat', + }, ]); From 455515d58e117f75fe66ec1b7e7cec48da8ff184 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Sun, 25 Sep 2022 13:06:56 -0400 Subject: [PATCH 2/2] test: update tests --- test/__snapshots__/science.spec.ts.snap | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/__snapshots__/science.spec.ts.snap b/test/__snapshots__/science.spec.ts.snap index b8350a247f5..a8fb5126b14 100644 --- a/test/__snapshots__/science.spec.ts.snap +++ b/test/__snapshots__/science.spec.ts.snap @@ -10,8 +10,8 @@ exports[`science > 42 > chemicalElement 1`] = ` exports[`science > 42 > unit 1`] = ` { - "name": "hertz", - "symbol": "Hz", + "name": "pascal", + "symbol": "Pa", } `; @@ -25,8 +25,8 @@ exports[`science > 1211 > chemicalElement 1`] = ` exports[`science > 1211 > unit 1`] = ` { - "name": "gray", - "symbol": "Gy", + "name": "henry", + "symbol": "H", } `; @@ -40,7 +40,7 @@ exports[`science > 1337 > chemicalElement 1`] = ` exports[`science > 1337 > unit 1`] = ` { - "name": "candela", - "symbol": "cd", + "name": "radian", + "symbol": "rad", } `;