Logo white

Administrator / test_1

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • test_1
  • framework
  • tests
  • javascript
  • bananas
  • bananas.js
  • first commit from local
    118a6488
    Administrator authored
    2015-11-13 11:07:18 +0200  
    Browse Code ยป
bananas.js 314 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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');
	});
});