- fix a ton of formatting issues automatically
- fix many javascript issues
This commit is contained in:
+19
-20
@@ -2,11 +2,11 @@ import {wait} from '../src/wait'
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
import { ReleaseNotes } from '../src/releaseNotes';
|
||||
import { readConfiguration } from '../src/utils';
|
||||
import { createCommandManager } from '../src/git-helper';
|
||||
import * as core from '@actions/core';
|
||||
import { Tags } from '../src/tags';
|
||||
import {ReleaseNotes} from '../src/releaseNotes'
|
||||
import {readConfiguration} from '../src/utils'
|
||||
import {createCommandManager} from '../src/git-helper'
|
||||
import * as core from '@actions/core'
|
||||
import {Tags} from '../src/tags'
|
||||
|
||||
// shows how the runner will run a javascript action with env / stdout protocol
|
||||
/*
|
||||
@@ -22,22 +22,21 @@ test('test runs', () => {
|
||||
})
|
||||
*/
|
||||
|
||||
it("Should be true", async () => {
|
||||
jest.setTimeout(180000);
|
||||
|
||||
const configuration = readConfiguration('configuration.json')
|
||||
const releaseNotes = new ReleaseNotes({
|
||||
owner: "mikepenz",
|
||||
repo: "MaterialDrawer",
|
||||
fromTag: null,
|
||||
toTag: "v8.1.6",
|
||||
configuration: configuration
|
||||
})
|
||||
|
||||
it('Should be true', async () => {
|
||||
jest.setTimeout(180000)
|
||||
|
||||
const changeLog = await releaseNotes.pull()
|
||||
console.log(changeLog)
|
||||
expect(changeLog).toStrictEqual(`
|
||||
const configuration = readConfiguration('configuration.json')
|
||||
const releaseNotes = new ReleaseNotes({
|
||||
owner: 'mikepenz',
|
||||
repo: 'MaterialDrawer',
|
||||
fromTag: null,
|
||||
toTag: 'v8.1.6',
|
||||
configuration: configuration
|
||||
})
|
||||
|
||||
const changeLog = await releaseNotes.pull()
|
||||
console.log(changeLog)
|
||||
expect(changeLog).toStrictEqual(`
|
||||
|
||||
<details>
|
||||
<summary>Uncategorized</summary>
|
||||
|
||||
Reference in New Issue
Block a user