@@ -24,11 +24,17 @@ var PLATFORM_INFO = {
2424 messagingURI : "platform.clearblade.com" ,
2525 appKey : 'f2f5f8aa0aba8bc7e4bdcd8ef142' ,
2626 appSecret : 'F2F5F8AA0AB4F2C4A4E1C387F3F801' ,
27+ noAuthAppKey : "b48abbb10af2f9bfffd9f793dc9a01" ,
28+ noAuthAppSecret : "B48ABBB10AE8EB9AD7D1B3B7FC62" ,
2729 safariCollection : "82f7f8aa0ab8929ab1c3cad7e534" ,
2830 chromeCollection :"84f6f8aa0abcf9fbb6ae97a6c9da01" ,
2931 firefoxCollection :"d8f6f8aa0ababdbbc5b8fdf49356" ,
30- generalCollection :'90f6f8aa0a86969ced80c0a8b03e'
31- }
32+ generalCollection :'90f6f8aa0a86969ced80c0a8b03e' ,
33+ firefoxNoAuthCollection : "f28fbbb10a8ca5a5f2f5acd297cc01" ,
34+ safariNoAuthCollection : "a690bbb10abadbb387efdcc0b09e01" ,
35+ generalNoAuthCollection : "ba90bbb10aba93f7bde8cbd2cfe201" ,
36+ chromeNoAuthCollection : "e08fbbb10ae0efadd4e2f68cf39701"
37+ } ;
3238var TargetPlatform = PLATFORM_INFO ;
3339
3440describe ( "ClearBlade API" , function ( ) {
@@ -42,8 +48,8 @@ describe("ClearBlade initialization should", function () {
4248 beforeEach ( function ( ) {
4349 var isClearBladeInit = false ;
4450 var initOptions = {
45- appKey : TargetPlatform . appKey ,
46- appSecret : TargetPlatform . appSecret ,
51+ appKey : TargetPlatform . noAuthAppKey ,
52+ appSecret : TargetPlatform . noAuthAppSecret ,
4753 URI : TargetPlatform . serverAddress ,
4854 messagingURI : TargetPlatform . messagingURI ,
4955 callback : function ( err , user ) {
@@ -58,11 +64,11 @@ describe("ClearBlade initialization should", function () {
5864 } ) ;
5965
6066 it ( "have the appKey stored" , function ( ) {
61- expect ( ClearBlade . appKey ) . toEqual ( TargetPlatform . appKey ) ;
67+ expect ( ClearBlade . appKey ) . toEqual ( TargetPlatform . noAuthAppKey ) ;
6268 } ) ;
6369
6470 it ( "have the appSecret stored" , function ( ) {
65- expect ( ClearBlade . appSecret ) . toEqual ( TargetPlatform . appSecret ) ;
71+ expect ( ClearBlade . appSecret ) . toEqual ( TargetPlatform . noAuthAppSecret ) ;
6672 } ) ;
6773
6874 // it("have defaulted the URI to the Platform", function () {
@@ -139,14 +145,14 @@ describe("ClearBlade collections fetching", function () {
139145 beforeEach ( function ( ) {
140146 var isClearBladeInit = false ;
141147 var initOptions = {
142- appKey : TargetPlatform . appKey ,
143- appSecret : TargetPlatform . appSecret ,
148+ appKey : TargetPlatform . noAuthAppKey ,
149+ appSecret : TargetPlatform . noAuthAppSecret ,
144150 URI : TargetPlatform . serverAddress ,
145151 messagingURI : TargetPlatform . messagingURI ,
146152 callback : function ( err , user ) {
147153 expect ( err ) . toEqual ( false ) ;
148154 isClearBladeInit = true ;
149- col = new ClearBlade . Collection ( TargetPlatform . generalCollection ) ;
155+ col = new ClearBlade . Collection ( TargetPlatform . generalNoAuthCollection ) ;
150156 }
151157 } ;
152158 ClearBlade . init ( initOptions ) ;
@@ -156,7 +162,7 @@ describe("ClearBlade collections fetching", function () {
156162 } ) ;
157163
158164 it ( "should have the collectionID stored" , function ( ) {
159- expect ( col . ID ) . toEqual ( TargetPlatform . generalCollection ) ;
165+ expect ( col . ID ) . toEqual ( TargetPlatform . generalNoAuthCollection ) ;
160166 } ) ;
161167
162168 it ( "should return the stuff I entered before" , function ( ) {
@@ -169,8 +175,8 @@ describe("ClearBlade collections fetching", function () {
169175 name : "aaron"
170176 } , function ( err , response ) {
171177 expect ( err ) . toEqual ( false ) ;
172- isAaronCreated = true ;
173- } ) ;
178+ isAaronCreated = true ;
179+ } ) ;
174180 } ) ;
175181 } ) ;
176182
0 commit comments