Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Fixed: Missing parentheses in Ch. 14 - QUnit Sample Code #428

Merged
merged 1 commit into from
May 3, 2013

Conversation

KevinTCoughlin
Copy link
Contributor

Parentheses is missing in last list.add of new Store and code does not work. Added missing parentheses.

// Define a group for our tests
module( 'StoreList sanity check', {
    setup: function() {
        this.list = new StoreList;
        this.list.add(new Store({ name: 'Costcutter' }));
        this.list.add(new Store({ name: 'Target' }));
        this.list.add(new Store({ name: 'Walmart' }));
        this.list.add(new Store({ name: 'Barnes & Noble' })); // Parentheses added here
    },
    teardown: function() {
        window.errors = null;
    }
});

Parenthesis is missing in last list.add of new Store and code does not work. Added missing Parenthesis.

// Define a group for our tests
module( 'StoreList sanity check', {
    setup: function() {
        this.list = new StoreList;
        this.list.add(new Store({ name: 'Costcutter' }));
        this.list.add(new Store({ name: 'Target' }));
        this.list.add(new Store({ name: 'Walmart' }));
        this.list.add(new Store({ name: 'Barnes & Noble' })); // Here
    },
    teardown: function() {
        window.errors = null;
    }
});
@addyosmani
Copy link
Owner

Thanks so much for catching this! Appreciate the PR :)

addyosmani added a commit that referenced this pull request May 3, 2013
Fixed: Missing parentheses in Ch. 14 - QUnit Sample Code
@addyosmani addyosmani merged commit 936754b into addyosmani:gh-pages May 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants