Skip to content

Commit

Permalink
Fix nf jest.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jul 21, 2024
1 parent 8e3d7fb commit 88b9bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .tests/js/__mocks__/backboneRadio.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// noinspection JSUnresolvedVariable

/* global nfRadio */

const submitChannel = {
listenTo: jest.fn(),
};
Expand All @@ -11,7 +9,7 @@ const fieldsChannel = {
request: jest.fn(),
};

nfRadio = {
const nfRadio = {
channel: jest.fn( ( channelName ) => {
if ( channelName === 'submit' ) {
return submitChannel;
Expand All @@ -21,3 +19,5 @@ nfRadio = {
}
} ),
};

global.nfRadio = nfRadio;

0 comments on commit 88b9bac

Please sign in to comment.