mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Fix disallowed module error in task runner (#18190)
This commit is contained in:
@@ -234,7 +234,7 @@ describe('JS TaskRunner execution on internal mode', () => {
|
||||
expect(result).toEqual({
|
||||
ok: false,
|
||||
error: expect.objectContaining({
|
||||
message: "Cannot find module 'fs' [line 2]",
|
||||
message: "Module 'fs' is disallowed [line 2]",
|
||||
}),
|
||||
});
|
||||
});
|
||||
@@ -262,7 +262,7 @@ describe('JS TaskRunner execution on internal mode', () => {
|
||||
expect(result).toEqual({
|
||||
ok: false,
|
||||
error: expect.objectContaining({
|
||||
message: "Cannot find module 'lodash' [line 2]",
|
||||
message: "Module 'lodash' is disallowed [line 2]",
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user