66 deserializeError ,
77 serializeEvaluationResult ,
88 deserializeEvaluationResult ,
9- SerializedResultTypes ,
109 serializeConnectOptions ,
1110 deserializeConnectOptions ,
1211} from './serializer' ;
@@ -50,10 +49,7 @@ describe('serializer', function () {
5049 printable : new SyntaxError ( 'Ooops!' ) ,
5150 } ) ;
5251
53- expect ( serialized ) . to . have . property (
54- 'type' ,
55- SerializedResultTypes . SerializedErrorResult
56- ) ;
52+ expect ( serialized ) . to . have . property ( 'type' , 'SerializedErrorResult' ) ;
5753 expect ( serialized ) . to . have . property ( 'printable' ) . not . instanceof ( Error ) ;
5854 expect ( serialized ) . to . have . nested . property (
5955 'printable.name' ,
@@ -68,10 +64,7 @@ describe('serializer', function () {
6864 printable : function abc ( ) { } ,
6965 } ) ;
7066
71- expect ( serialized ) . to . have . property (
72- 'type' ,
73- SerializedResultTypes . InspectResult
74- ) ;
67+ expect ( serialized ) . to . have . property ( 'type' , 'InspectResult' ) ;
7568 expect ( serialized ) . to . have . property ( 'printable' , '[Function: abc]' ) ;
7669 } ) ;
7770
@@ -81,10 +74,7 @@ describe('serializer', function () {
8174 printable : { foo : 'bar' } ,
8275 } ) ;
8376
84- expect ( serialized ) . to . have . property (
85- 'type' ,
86- SerializedResultTypes . SerializedShellApiResult
87- ) ;
77+ expect ( serialized ) . to . have . property ( 'type' , 'SerializedShellApiResult' ) ;
8878 expect ( serialized ) . to . have . nested . property (
8979 'printable.origType' ,
9080 'TotallyRealShellApiType'
@@ -100,7 +90,7 @@ describe('serializer', function () {
10090 describe ( 'deserializeEvaluationResult' , function ( ) {
10191 it ( 'should deserialize SerializedErrorResult' , function ( ) {
10292 const deserialized = deserializeEvaluationResult ( {
103- type : SerializedResultTypes . SerializedErrorResult ,
93+ type : ' SerializedErrorResult' ,
10494 printable : { name : 'TypeError' , message : 'Uh-oh' } ,
10595 } ) ;
10696
@@ -117,7 +107,7 @@ describe('serializer', function () {
117107
118108 it ( 'should deserialize SerializedShellApiResult' , function ( ) {
119109 const deserialized = deserializeEvaluationResult ( {
120- type : SerializedResultTypes . SerializedShellApiResult ,
110+ type : ' SerializedShellApiResult' ,
121111 printable : {
122112 origType : 'ShellApiResult' ,
123113 serializedValue : { foo : 'bar' } ,
0 commit comments