tracks/ecmascript/exercises/kindergarten-garden/kindergarten-garden.spec.js in trackler-2.2.0.0 vs tracks/ecmascript/exercises/kindergarten-garden/kindergarten-garden.spec.js in trackler-2.2.0.1
- old
+ new
@@ -1,9 +1,8 @@
import Garden from './kindergarten-garden';
describe('Garden', () => {
-
test('for Alice', () => {
expect(new Garden('RC\nGG').alice)
.toEqual(['radishes', 'clover', 'grass', 'grass']);
});
@@ -20,11 +19,10 @@
xtest('for Bob and Charlie', () => {
const garden = new Garden('VVCCGG\nVVCCGG');
expect(garden.bob).toEqual(['clover', 'clover', 'clover', 'clover']);
expect(garden.charlie).toEqual(['grass', 'grass', 'grass', 'grass']);
});
-
});
describe('Full garden', () => {
const diagram = 'VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV';
const garden = new Garden(diagram);
@@ -86,11 +84,10 @@
xtest('for Larry', () => {
expect(garden.larry)
.toEqual(['grass', 'violets', 'clover', 'violets']);
});
-
});
describe('Disordered class', () => {
const diagram = 'VCRRGVRG\nRVGCCGCV';
const students = ['Samantha', 'Patricia', 'Xander', 'Roger'];
@@ -113,11 +110,10 @@
xtest('Xander', () => {
expect(garden.xander)
.toEqual(['radishes', 'grass', 'clover', 'violets']);
});
-
});
describe('Two gardens, different students', () => {
const diagram = 'VCRRGVRG\nRVGCCGCV';
const garden1 = new Garden(diagram, ['Alice', 'Bob', 'Charlie', 'Dan']);
@@ -131,7 +127,6 @@
expect(garden1.charlie)
.toEqual(['grass', 'violets', 'clover', 'grass']);
expect(garden2.charlie)
.toEqual(['radishes', 'radishes', 'grass', 'clover']);
});
-
});