@@ -10,22 +10,23 @@ export class CustomTest extends Test<IObject> {
1010 public static readonly suiteTitle : string = "Custom" ;
1111 public static readonly suiteColor : [ number , number , number ] = [ 255 , 255 , 0 ] ;
1212
13- constructor ( title : string ) {
14- super ( title ) ;
15- }
16-
17- protected async evalActualExpression ( obj : IObject ) : Promise < IObject > {
18- return Object . fromEntries (
19- Object . entries ( obj )
20- . map ( ( entry : [ string , unknown ] ) => [ entry [ 0 ] . toLowerCase ( ) , entry [ 1 ] ] )
21- ) as IObject ;
22- }
23-
24- protected isEqual ( actual : IObject , expected : IObject ) : boolean {
25- return ! Object . keys ( this . filterComparedValues ( actual , expected ) . actual ) . length ;
13+ protected evalActualExpression ( arg1 : string , arg2 : boolean ) : IObject {
14+ // HINT:
15+ // evalActualExpression() and analog. evalExpectedExpression() are
16+ // ought to compile a value sharing a common type. he evaluation can
17+ // base on an arbitrary amount of heterogeneous arguments.
18+ // E.g.: Obtaining an HTTP response based on endpoint information.
19+ return {
20+ arg1, arg2
21+ }
2622 }
2723
28- protected filterComparedValues ( actual : IObject , expected : IObject ) {
24+ protected getDifference ( actual : IObject , expected : IObject ) {
25+ // HINT:
26+ // Filter the previously evaluated test expression values for
27+ // differences in respect to the test purpose.
28+ // E.g.: Filtering explicitly provided HTTP response properties on
29+ // the actaul HTTP response that differ.
2930 return {
3031 actual : actual ,
3132 expected : expected
0 commit comments