Skip to content

Commit f855465

Browse files
committed
chore: add test
Signed-off-by: nikolay <[email protected]>
1 parent f1d389c commit f855465

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/relay/tests/lib/utils.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ describe('Utils', () => {
120120
{ keyFormat: 'DER', keyValue: PrivateKey.generateED25519().toStringDer() },
121121
];
122122

123+
withOverriddenEnvsInMochaTest(
124+
{
125+
OPERATOR_ID_MAIN: false,
126+
OPERATOR_KEY_MAIN: false,
127+
},
128+
() => {
129+
it('should return null for invalid operator id or key', () => {
130+
const operator = Utils.getOperator(logger);
131+
expect(operator).to.be.null;
132+
});
133+
},
134+
);
135+
123136
privateKeys.forEach(({ keyFormat, keyValue }) => {
124137
withOverriddenEnvsInMochaTest(
125138
{

0 commit comments

Comments
 (0)