Skip to content

Commit

Permalink
Minor spec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Mar 28, 2014
1 parent 847e1f1 commit d55a49d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion spec/components/defaultLoaderBehaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ describe('Components: Default loader', function() {

afterEach(function() {
ko.components.unregister(testComponentName);
ko.components.clearCachedDefinition(testComponentName);
});

it('Allows registration of arbitrary component config objects, reports that they are registered, and allows unregistration', function() {
Expand Down
4 changes: 2 additions & 2 deletions spec/components/loaderRegistryBehaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ describe('Components: Loader registry', function() {
expect(requireCallLog.length).toBe(1);
});

// And when the loading eventually completes, both requests are satisifed with the same definition
// And when the loading eventually completes, both requests are satisfied with the same definition
waitsFor(function() { return definition1 }, 300);
runs(function() {
expect(definition1.template).toBe(someModuleTemplate);
Expand All @@ -278,7 +278,7 @@ describe('Components: Loader registry', function() {
});
});

function getComponentDefinition(componentName, assertionCallback, usingMockClock) {
function getComponentDefinition(componentName, assertionCallback) {
var loadedDefinition,
hasCompleted = false;
runs(function() {
Expand Down

0 comments on commit d55a49d

Please sign in to comment.