mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
c9335d5bf6
This PR adds support for Microsoft's [Visual Studio Team Services](https://www.visualstudio.com/team-services/) platform (in addition to existing GitHub and GitLab support). Closes #571
32 lines
1 KiB
JavaScript
32 lines
1 KiB
JavaScript
const github = require('../../lib/platform/github');
|
|
const gitlab = require('../../lib/platform/gitlab');
|
|
const vsts = require('../../lib/platform/vsts');
|
|
|
|
describe('platform', () => {
|
|
it('has a list of supported methods for github', () => {
|
|
const githubMethods = Object.keys(github);
|
|
expect(githubMethods).toMatchSnapshot();
|
|
});
|
|
|
|
it('has a list of supported methods for gitlab', () => {
|
|
const gitlabMethods = Object.keys(gitlab);
|
|
expect(gitlabMethods).toMatchSnapshot();
|
|
});
|
|
|
|
it('has a list of supported methods for vsts', () => {
|
|
const vstsMethods = Object.keys(vsts);
|
|
expect(vstsMethods).toMatchSnapshot();
|
|
});
|
|
|
|
it('has same API for github and gitlab', () => {
|
|
const githubMethods = Object.keys(github);
|
|
const gitlabMethods = Object.keys(gitlab);
|
|
expect(githubMethods).toMatchObject(gitlabMethods);
|
|
});
|
|
|
|
it('has same API for github and vsts', () => {
|
|
const githubMethods = Object.keys(github);
|
|
const vstsMethods = Object.keys(vsts);
|
|
expect(githubMethods).toMatchObject(vstsMethods);
|
|
});
|
|
});
|