mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-07 02:31:36 +00:00
Merge pull request #3 from ww-bennadler/feature/add-performance
Feature/add performance
This commit is contained in:
commit
0dc707f5e8
@ -3,7 +3,11 @@ import { Item, GildedRose } from '@/gilded-rose';
|
||||
describe('Gilded Rose', () => {
|
||||
it('should foo', () => {
|
||||
const gildedRose = new GildedRose([new Item('foo', 0, 0)]);
|
||||
const startTime = performance.now();
|
||||
const items = gildedRose.updateQuality();
|
||||
expect(items[0].name).toBe('fixme');
|
||||
const endTime = performance.now();
|
||||
|
||||
console.log('Execution time: ' + (endTime - startTime) + 'ms');
|
||||
expect(items[0].name).toBe('foo');
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user