From 8e3d7fb784a999b1926ddf1a00ce0537bc90b64a Mon Sep 17 00:00:00 2001 From: kagg-design Date: Sun, 21 Jul 2024 14:43:29 +0300 Subject: [PATCH] Fix nf jest. --- .tests/js/__mocks__/backboneMarionette.js | 2 +- .tests/js/__mocks__/backboneRadio.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.tests/js/__mocks__/backboneMarionette.js b/.tests/js/__mocks__/backboneMarionette.js index 336fa6fe..eba2136c 100644 --- a/.tests/js/__mocks__/backboneMarionette.js +++ b/.tests/js/__mocks__/backboneMarionette.js @@ -39,5 +39,5 @@ const Marionette = { }; global.Backbone = Backbone; -global.nfRadio = Backbone.Radio; +global.nfRadio = Backbone.Radio; global.Marionette = Marionette; diff --git a/.tests/js/__mocks__/backboneRadio.js b/.tests/js/__mocks__/backboneRadio.js index c21c24d8..29ad8bd4 100644 --- a/.tests/js/__mocks__/backboneRadio.js +++ b/.tests/js/__mocks__/backboneRadio.js @@ -1,5 +1,7 @@ // noinspection JSUnresolvedVariable +/* global nfRadio */ + const submitChannel = { listenTo: jest.fn(), };