describe("First Day of Foundations", function(){
it('is a function object', function() {
expect(typeof firstDay).toEqual('function');
});
it('returns the string "first day"', function() {
expect(firstDay()).toEqual("first day");
});
});
// FILE: first_day_specs.js NOTE - THIS LOADS AFTER
// the first_day.js file
describe("First Day of Foundations", function(){
it('is a function object', function() {
expect(typeof firstDay).toEqual('function');
});
it('returns the string "first day"', function() {
expect(firstDay()).toEqual("first day");
});
});
// FILE: first_day.js
function firstDay() {
return "first day";
}describe("the title of the suite of test specs", function(){
it('name of spec', function(){
});
it('name of spec', function(){
});
it('name of spec', function(){
});
});describe("the title of the suite of test specs", function(){
it("helloWorld return value", function(){
expect(helloWorld()).toEqual("Hello World");
});
it("myName variable", function(){
expect(myName).toEqual("Scott");
});
});describe("the title of the suite of test specs", function(){
var total;
beforeEach(function() {
total = 2;
})
it("increase total by 1", function(){
total += increaseTotal();
expect(total).toEqual(3);
});
it("increase total by argument", function(){
total += increaseTotal(5);
expect(total).toEqual(8);
});
});