mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
15 lines
389 B
JavaScript
15 lines
389 B
JavaScript
var { expect } = require("chai");
|
|
var { compose } = require("./texttest_fixture");
|
|
var fs = require("fs");
|
|
var path = require("path");
|
|
var expectedOutput = fs
|
|
.readFileSync(path.join(__dirname, "approved.txt"))
|
|
.toString();
|
|
|
|
describe("Gilded Rose", function () {
|
|
it("should match", function () {
|
|
const output = compose(31);
|
|
expect(output).to.equal(expectedOutput);
|
|
});
|
|
});
|