mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
16 lines
314 B
JavaScript
16 lines
314 B
JavaScript
|
Banana = {
|
||
|
getAmount: function() {
|
||
|
return 2;
|
||
|
},
|
||
|
getColor: function() {
|
||
|
return 'brown';
|
||
|
}
|
||
|
}
|
||
|
describe("The banana", function() {
|
||
|
it("should have two left", function() {
|
||
|
expect(Banana.getAmount()).toEqual(2);
|
||
|
});
|
||
|
it("should be yellow", function() {
|
||
|
expect(Banana.getColor()).toEqual('yellow');
|
||
|
});
|
||
|
});
|