Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('queries the registry, showing newer', () => {
npmJson.mockImplementation(() => {
return Promise.resolve({ version: '0.0.0' });
});
return clientId.getNpmStatus().then((version) => {
expect(version).toEqual('newer, 0.0.0 published');
});
});
});