1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.fakePush = void 0;
|
19 | const GitHubRepoRef_1 = require("@atomist/automation-client/lib/operations/common/GitHubRepoRef");
|
20 | const addressChannels_1 = require("../../api/context/addressChannels");
|
21 | const preferenceStore_1 = require("../../api/context/preferenceStore");
|
22 | const skillContext_1 = require("../../api/context/skillContext");
|
23 | const fakeContext_1 = require("./fakeContext");
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | function fakePush(project, pli = {}) {
|
31 | return Object.assign(Object.assign({ id: project ? project.id : new GitHubRepoRef_1.GitHubRepoRef("my", "test"), push: {
|
32 | id: new Date().getTime() + "_",
|
33 | branch: "master",
|
34 | after: {
|
35 | message: "Some fake commit",
|
36 | },
|
37 | }, project: project, context: fakeContext_1.fakeContext(), addressChannels: addressChannels_1.AddressNoChannels, configuration: {}, preferences: preferenceStore_1.NoPreferenceStore, credentials: { token: "fake-token" } }, pli), { skill: skillContext_1.createSkillContext(fakeContext_1.fakeContext()) });
|
38 | }
|
39 | exports.fakePush = fakePush;
|
40 |
|
\ | No newline at end of file |