Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
factory = {
client: jest.fn(() => ({
on: onStub,
getTreatments: jest.fn(() => flags),
Event: {
SDK_READY: 'SDK_READY',
SDK_UPDATE: 'SDK_UPDATE',
},
})),
manager: jest.fn(() => ({
names: jest.fn(() => names),
})),
};
SplitFactory.mockReturnValue(factory);
return adapter.configure(
{
authorizationKey,
user: userWithKey,
},
{
onStatusStateChange,
onFlagsStateChange,
}
);
});