improve changeset styling

This commit is contained in:
Sebastian Sdorra
2018-10-18 14:40:35 +02:00
parent 167e8dbdca
commit 9ac5b3fe37
13 changed files with 239 additions and 136 deletions

View File

@@ -0,0 +1,16 @@
// @flow
import { parseDescription } from "./changesets";
describe("parseDescription tests", () => {
it("should return a description with title and message", () => {
const desc = parseDescription("Hello\nTrillian");
expect(desc.title).toBe("Hello");
expect(desc.message).toBe("Trillian");
});
it("should return a description with title and without message", () => {
const desc = parseDescription("Hello Trillian");
expect(desc.title).toBe("Hello Trillian");
});
});