File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ import { describe , expect , it } from "vitest" ;
2+ import { globalEntryIsValid } from "../src/utils" ;
3+
4+ describe ( `util tests` , ( ) => {
5+ it ( `should pass` , ( ) => {
6+ expect ( globalEntryIsValid ( `/RPGLEREPL/BND/REPL_CMPL.BND` , `QRPGLEREF/REPL_USR.*` ) ) . toBeFalsy ( ) ;
7+ expect ( globalEntryIsValid ( `/RPGLEREPL/REF/REPL_USR.RPGLEINC` , `QRPGLEREF/REPL_USR.*` ) ) . toBeFalsy ( ) ;
8+ expect ( globalEntryIsValid ( `/RPGLEREPL/BND/REPL_USR.BND` , `REPL_USR.R*` ) ) . toBeFalsy ( ) ;
9+ expect ( globalEntryIsValid ( `/RPGLEREPL/QRPGLEREF/REPL_USR.BND` , `REPL_USR.R*` ) ) . toBeFalsy ( ) ;
10+
11+ expect ( globalEntryIsValid ( `/RPGLEREPL/QRPGLEREF/REPL_USR.RPGLEINC` , `REPL_USR.R*` ) ) . toBeTruthy ( ) ;
12+ expect ( globalEntryIsValid ( `/RPGLEREPL/QRPGLEREF/REPL_USR.RPGLEINC` , `QRPGLEREF/REPL_USR.*` ) ) . toBeTruthy ( ) ;
13+ expect ( globalEntryIsValid ( `/RPGLEREPL/BND/REPL_USR.BND` , `REPL_USR.*` ) ) . toBeTruthy ( ) ;
14+ } ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments