10000 Merge pull request #2 from CoolCyberBrain/patch-3 · wolfwithcode/design-patterns-JS@f79c838 · GitHub
[go: up one dir, main page]

Skip to content

Commit f79c838

Browse files
authored
Merge pull request fbeline#2 from CoolCyberBrain/patch-3
"Cabbinet" typo
2 parents 01f0f70 + cc8bff2 commit f79c838

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/composite_es6-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
const expect = require('chai').expect;
22

3-
import { Cabbinet, FloppyDisk, HardDrive, Memory } from '../src/structural/composite/composite_es6';
3+
import { Cabinet, FloppyDisk, HardDrive, Memory } from '../src/structural/composite/composite_es6';
44

55

66
describe('composity tests', () => {
77

88
it('sanity test', () => {
9-
const cabbinet = new Cabbinet();
10-
cabbinet.add(new FloppyDisk());
11-
cabbinet.add(new HardDrive());
12-
cabbinet.add(new Memory());
9+
const cabinet = new Cabinet();
10+
cabinet.add(new FloppyDisk());
11+
cabinet.add(new HardDrive());
12+
cabinet.add(new Memory());
1313

14-
expect(cabbinet.getPrice()).to.equal(600);
14+
expect(cabinet.getPrice()).to.equal(600);
1515
});
1616
});

0 commit comments

Comments
 (0)
0