tracks/javascript/exercises/allergies/allergies.spec.js in trackler-2.2.1.37 vs tracks/javascript/exercises/allergies/allergies.spec.js in trackler-2.2.1.38
- old
+ new
@@ -1,66 +1,65 @@
var Allergies = require('./allergies');
-describe('Allergies',function() {
-
- it('no allergies at all', function() {
+describe('Allergies', function () {
+ it('no allergies at all', function () {
var allergies = new Allergies(0);
expect(allergies.list()).toEqual([]);
});
- xit('allergies to eggs', function() {
+ xit('allergies to eggs', function () {
var allergies = new Allergies(1);
expect(allergies.list()).toEqual([ 'eggs' ]);
});
- xit('allergies to peanuts', function() {
+ xit('allergies to peanuts', function () {
var allergies = new Allergies(2);
expect(allergies.list()).toEqual([ 'peanuts' ]);
});
- xit('allergies to strawberries', function() {
+ xit('allergies to strawberries', function () {
var allergies = new Allergies(8);
expect(allergies.list()).toEqual([ 'strawberries' ]);
});
- xit('allergies to eggs and peanuts', function() {
+ xit('allergies to eggs and peanuts', function () {
var allergies = new Allergies(3);
expect(allergies.list()).toEqual([ 'eggs', 'peanuts' ]);
});
- xit('allergies to more than eggs but not peanuts', function() {
+ xit('allergies to more than eggs but not peanuts', function () {
var allergies = new Allergies(5);
expect(allergies.list()).toEqual([ 'eggs', 'shellfish' ]);
});
- xit('allergic to lots of stuff', function() {
+ xit('allergic to lots of stuff', function () {
var allergies = new Allergies(248);
expect(allergies.list()).toEqual(['strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats']);
});
- xit('allergic to everything', function() {
+ xit('allergic to everything', function () {
var allergies = new Allergies(255);
expect(allergies.list()).toEqual(['eggs', 'peanuts', 'shellfish', 'strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats']);
});
- xit('no allergic means not allergic', function() {
+ xit('no allergic means not allergic', function () {
var allergies = new Allergies(0);
expect(allergies.allergicTo('peanuts')).toEqual(false);
expect(allergies.allergicTo('cats')).toEqual(false);
expect(allergies.allergicTo('strawberries')).toEqual(false);
});
- xit('allergic to eggs', function() {
+ xit('allergic to eggs', function () {
var allergies = new Allergies(1);
expect(allergies.allergicTo('eggs')).toEqual(true);
});
- xit('allergic to eggs and other things', function() {
+ xit('allergic to eggs and other things', function () {
var allergies = new Allergies(5);
expect(allergies.allergicTo('eggs')).toEqual(true);
});
- xit('ignore non allergen score parts', function() {
+ xit('ignore non allergen score parts', function () {
var allergies = new Allergies(509);
expect(allergies.list()).toEqual(['eggs', 'shellfish', 'strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats']);
});
-});
\ No newline at end of file
+});