This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(worker): update debian changelog write path location
- Loading branch information
Showing
5 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* houston/test/e2e/worker/task/debian/changelog.ts | ||
* Tests that the changelog task works as needed | ||
*/ | ||
|
||
import { test } from 'ava' | ||
|
||
import { DebianChangelog } from '../../../../../src/worker/task/debian/changelog' | ||
|
||
import { mock } from '../../../../utility/worker' | ||
|
||
test('changelog renders correctly', async (t) => { | ||
const worker = await mock({ | ||
changelog: [{ | ||
author: 'Blake Kostner', | ||
changes: 'updated some fun things', | ||
date: new Date(), | ||
version: '0.0.1' | ||
}, { | ||
author: 'Blake Kostner', | ||
changes: 'resion release', | ||
date: new Date(), | ||
version: '1.0.0' | ||
}], | ||
nameAppstream: 'com.github.elementary.houston.desktop', | ||
nameDomain: 'com.github.elementary.houston' | ||
}) | ||
|
||
worker.tasks.push(DebianChangelog) | ||
|
||
await worker.setup() | ||
await worker.run() | ||
|
||
const changelog = await worker.readFile('dirty/debian/changelog') | ||
|
||
await worker.teardown() | ||
|
||
t.not(changelog.indexOf('resion release'), -1) | ||
t.not(changelog.indexOf('updated some fun things'), -1) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters