mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
ci: Fix typecheck on master (no-changelog) (#10122)
Co-authored-by: Elias Meire <elias@meire.dev>
This commit is contained in:
@@ -1,16 +1,19 @@
|
|||||||
import { renderComponent } from '@/__tests__/render';
|
import { renderComponent } from '@/__tests__/render';
|
||||||
import { createTestingPinia } from '@pinia/testing';
|
import { createTestingPinia } from '@pinia/testing';
|
||||||
import ParameterInputWrapper from './ParameterInputWrapper.vue';
|
import ParameterInputWrapper from './ParameterInputWrapper.vue';
|
||||||
|
import { STORES } from '@/constants';
|
||||||
|
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
|
||||||
|
|
||||||
describe('ParameterInputWrapper.vue', () => {
|
describe('ParameterInputWrapper.vue', () => {
|
||||||
test('should resolve expression', async () => {
|
test('should resolve expression', async () => {
|
||||||
const { getByTestId } = renderComponent(ParameterInputWrapper, {
|
const { getByTestId } = renderComponent(ParameterInputWrapper, {
|
||||||
pinia: createTestingPinia({
|
pinia: createTestingPinia({
|
||||||
initialState: {
|
initialState: {
|
||||||
ndv: {
|
[STORES.NDV]: {
|
||||||
activeNodeName: 'testNode',
|
activeNodeName: 'testNode',
|
||||||
input: { nodeName: 'inputNode' },
|
input: { nodeName: 'inputNode' },
|
||||||
},
|
},
|
||||||
|
[STORES.SETTINGS]: SETTINGS_STORE_DEFAULT_STATE,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -1443,7 +1443,7 @@ export function useCanvasOperations({
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
nodeSaveData.credentials &&
|
nodeSaveData.credentials &&
|
||||||
settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.Sharing)
|
settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.Sharing]
|
||||||
) {
|
) {
|
||||||
nodeSaveData.credentials = filterAllowedCredentials(
|
nodeSaveData.credentials = filterAllowedCredentials(
|
||||||
nodeSaveData.credentials,
|
nodeSaveData.credentials,
|
||||||
|
|||||||
Reference in New Issue
Block a user