Sha256: ab2a423d4110cbceae285a0d4f4b051abb69be712c2101667b50c4b5cc502d26
Contents?: true
Size: 1.25 KB
Versions: 23
Compression:
Stored size: 1.25 KB
Contents
define(["js/view/base"],function(e){describe("The Base View (extended Backbone.View) is a collection of common view methods for other views that extend it.",function(){var t=new e;it("should have a method defined parseAlertKeys()",function(){expect(t.parseAlertKeys).toBeDefined()});var s={"null":"null values",undefined:"undefined values",0:"falsey integer values",1:"truthy integer values","test@test.com":"single email addresses",apple:"single pseudo pager duty keys","test@test.com apple":"combinations with space","test@test.com,apple":"combinations with comma","test@test.com\napple":"combinations with new line"," test@test.com\napple orange\nbanana ":"combinations with new line, commas, and spaces"},n={"null":["null"],undefined:["undefined"],0:["0"],1:["1"],"test@test.com":["test@test.com"],apple:["apple"],"test@test.com apple":["test@test.com","apple"],"test@test.com,apple":["test@test.com","apple"],"test@test.com\napple":["test@test.com","apple"]," test@test.com\napple orange\nbanana ":["test@test.com","apple","orange","banana"]};describe("The method parseAlertKeys() parses strings and...",function(){for(var e in s)s.hasOwnProperty(e)&&!function(e,s,n){it("should handle "+s+" ( "+e+" )",function(){expect(t.parseAlertKeys(e)).toEqual(n)})}(e,s[e],n[e])})})});
Version data entries
23 entries across 23 versions & 1 rubygems