@@ -5,7 +5,7 @@ import { isOverLapping } from './database-relation-collection.business';
55describe ( 'database-relation-collection.business' , ( ) => {
66 describe ( 'isOverLapping function tests' , ( ) => {
77 it ( 'non-overlapping tables (before)' , ( ) => {
8- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
8+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
99 console . log (
1010 `
1111 Table A |====|
@@ -25,7 +25,7 @@ describe('database-relation-collection.business', () => {
2525 } ) ;
2626
2727 it ( 'non-overlapping tables (after)' , ( ) => {
28- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
28+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
2929 console . log (
3030 `
3131 Table A |====|
@@ -45,7 +45,7 @@ describe('database-relation-collection.business', () => {
4545 } ) ;
4646
4747 it ( 'overlapping tables (partial)' , ( ) => {
48- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
48+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
4949 console . log (
5050 `
5151 Table A |====|
@@ -65,7 +65,7 @@ describe('database-relation-collection.business', () => {
6565 } ) ;
6666
6767 it ( 'overlapping tables (partial - reverse)' , ( ) => {
68- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
68+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
6969 console . log (
7070 `
7171 Table A |====|
@@ -85,7 +85,7 @@ describe('database-relation-collection.business', () => {
8585 } ) ;
8686
8787 it ( 'overlapping tables (full)' , ( ) => {
88- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
88+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
8989 console . log (
9090 `
9191 Table A |====|
@@ -105,7 +105,7 @@ describe('database-relation-collection.business', () => {
105105 } ) ;
106106
107107 it ( 'overlapping tables (edge)' , ( ) => {
108- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
108+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
109109 console . log (
110110 `
111111 Table A |====|
@@ -125,7 +125,7 @@ describe('database-relation-collection.business', () => {
125125 } ) ;
126126
127127 it ( 'overlapping tables (edge - reverse)' , ( ) => {
128- vi . spyOn ( TABLE_CONST , 'TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
128+ vi . spyOn ( TABLE_CONST , 'DEFAULT_TABLE_WIDTH ' , 'get' ) . mockReturnValue ( 100 ) ;
129129 console . log (
130130 `
131131 Table A |====|
0 commit comments