- fix a ton of formatting issues automatically

- fix many javascript issues
This commit is contained in:
Mike Penz
2020-10-16 16:29:13 +02:00
parent 8d59911332
commit db70432deb
10 changed files with 636 additions and 557 deletions
+19 -20
View File
@@ -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>