mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Fix Credentials tests on node 18 (no-changelog) (#12889)
This commit is contained in:
committed by
GitHub
parent
e146ad021a
commit
49b8693d7c
@@ -92,9 +92,8 @@ describe('Credentials', () => {
|
||||
} catch (error) {
|
||||
expect(error.constructor.name).toBe('CredentialDataError');
|
||||
expect(error.extra).toEqual({ ...nodeCredentials, type: credentialType });
|
||||
expect(error.cause).toEqual(
|
||||
new SyntaxError('Unexpected token \'i\', "invalid-json-string" is not valid JSON'),
|
||||
);
|
||||
expect(error.cause).toBeInstanceOf(SyntaxError);
|
||||
expect(error.cause.message).toMatch('Unexpected token ');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user