mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 02:53:57 +00:00
Add mocha nodejs version of the code.
This commit is contained in:
1 parent
944762bedc
commit
b7a5c592b8
5 files changed
+354
No files matched your search
@@ -0,0 +1,11 @@
|
||||
var {expect} = require('chai');
|
||||
var {Shop, Item} = require('../src/gilded_rose.js');
|
||||
describe("Gilded Rose", function() {
|
||||
|
||||
it("should foo", function() {
|
||||
const gildedRose = new Shop([ new Item("foo", 0, 0) ]);
|
||||
const items = gildedRose.updateQuality();
|
||||
expect(items[0].name).to.equal("fixme");
|
||||
});
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user