Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing my specs tests: expects > expect

  • Loading branch information...
commit 86c52e25b173de9283648ec356d153c40a72cb1e 1 parent 48f5778
@anutron authored
View
4 Tests/Specs/clientcide/Behaviors/Behavior.Autocompleter.js
@@ -15,7 +15,7 @@ provides: [Behavior.Autocompleter.Tests]
desc: 'Creates an instance of Autocomplete (local)',
content: str,
returns: Autocompleter.Local,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.tokens).toEqual(['foo', 'bar', 'baz']);
}
});
@@ -34,7 +34,7 @@ provides: [Behavior.Autocompleter.Tests]
desc: 'Creates an instance of Autocomplete (remote)',
content: remote,
returns: Autocompleter.Ajax.Json,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.request).toBeDefined();
}
});
View
2  Tests/Specs/clientcide/Behaviors/Behavior.Collapsible.js
@@ -15,7 +15,7 @@ provides: [Behavior.Collapsible.Tests]
desc: 'Creates an instance of Collapsible',
content: str,
returns: Collapsible,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.section.hasClass('theTarget')).toBe(true);
instance.toggle(instance.section);
waits(700);
View
5 Tests/Specs/clientcide/Behaviors/Behavior.StickyWin.js
@@ -14,7 +14,10 @@ provides: [Behavior.StickyWin.Tests]
filterName: 'StickyWin.Modal',
desc: 'Creates an instance of StickyWin.Modal',
content: str,
- returns: StickyWin.Modal
+ returns: StickyWin.Modal,
+ expect: function(element, instance){
+ instance.destroy();
+ }
});
Behavior.addFilterTest({
filterName: 'StickyWin.Modal',
View
2  Tests/Specs/clientcide/Behaviors/Behavior.Tabs.js
@@ -15,7 +15,7 @@ provides: [Behavior.Tabs.Tests]
desc: 'Creates an instance of TabSwapper',
content: str,
returns: TabSwapper,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.tabs.length).toBe(3);
}
});
View
6 Tests/Specs/clientcide/Behaviors/Behavior.Tips.js
@@ -15,7 +15,7 @@ provides: [Behavior.Tips.Tests]
desc: 'Creates an instance of Tips.Pointy',
content: pointy,
returns: Tips.Pointy,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.tip.pointy.options.direction).toBe(6);
}
});
@@ -34,7 +34,7 @@ provides: [Behavior.Tips.Tests]
desc: 'Creates an instance of Tips.Pointy (help)',
content: help,
returns: Tips.Pointy,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.tip.pointy.options.direction).toBe(1);
}
});
@@ -53,7 +53,7 @@ provides: [Behavior.Tips.Tests]
desc: 'Creates an instance of Tips.Pointy (info)',
content: info,
returns: Tips.Pointy,
- expects: function(element, instance){
+ expect: function(element, instance){
expect(instance.tip.pointy.options.direction).toBe(1);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.