Skip to content

Commit

Permalink
test: travis mock getPkgReleases
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jun 19, 2020
1 parent 735f6a5 commit df1aa26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/manager/travis/package.spec.ts
@@ -1,11 +1,11 @@
import { getConfig } from '../../config/defaults';
import { getReleases as _getReleases } from '../../datasource/github-tags';
import { getPkgReleases as _getPkgReleases } from '../../datasource';
import { getPackageUpdates } from './package';

const defaultConfig = getConfig();
const getReleases: any = _getReleases;
const getPkgReleases: any = _getPkgReleases;

jest.mock('../../datasource/github-tags');
jest.mock('../../datasource');

describe('lib/manager/travis/package', () => {
describe('getPackageUpdates', () => {
Expand Down Expand Up @@ -38,7 +38,7 @@ describe('lib/manager/travis/package', () => {
it('detects pinning', async () => {
config.currentValue = ['8.4.0', '10.0.0', '12.0.0'];
config.supportPolicy = ['lts'];
getReleases.mockReturnValueOnce({
getPkgReleases.mockReturnValueOnce({
releases: [
{
version: '4.4.4',
Expand Down

0 comments on commit df1aa26

Please sign in to comment.