@@ -95,7 +95,7 @@ describe('javascript-sdk/react-native', function() {
9595 assert . equal ( optlyInstance . clientVersion , '3.6.0-alpha.1' ) ;
9696 } ) ;
9797
98- it ( 'should set the JavaScript client engine and version' , function ( ) {
98+ it ( 'should set the React Native JS client engine and javascript SDK version' , function ( ) {
9999 var optlyInstance = optimizelyFactory . createInstance ( {
100100 datafile : { } ,
101101 errorHandler : fakeErrorHandler ,
@@ -104,11 +104,11 @@ describe('javascript-sdk/react-native', function() {
104104 } ) ;
105105 // Invalid datafile causes onReady Promise rejection - catch this error
106106 optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
107- assert . equal ( 'javascript-sdk ' , optlyInstance . clientEngine ) ;
107+ assert . equal ( 'react-native-js ' , optlyInstance . clientEngine ) ;
108108 assert . equal ( packageJSON . version , optlyInstance . clientVersion ) ;
109109 } ) ;
110110
111- it ( 'should allow passing of "react-sdk" as the clientEngine' , function ( ) {
111+ it ( 'should allow passing of "react-sdk" as the clientEngine and convert it to "react-native" ' , function ( ) {
112112 var optlyInstance = optimizelyFactory . createInstance ( {
113113 clientEngine : 'react-sdk' ,
114114 datafile : { } ,
@@ -118,7 +118,7 @@ describe('javascript-sdk/react-native', function() {
118118 } ) ;
119119 // Invalid datafile causes onReady Promise rejection - catch this error
120120 optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
121- assert . equal ( 'react-sdk ' , optlyInstance . clientEngine ) ;
121+ assert . equal ( 'react-native ' , optlyInstance . clientEngine ) ;
122122 } ) ;
123123
124124 it ( 'should activate with provided event dispatcher' , function ( ) {
0 commit comments