1- import { QUERY_URL_PATTERNS } from "@dicelette/utils" ;
1+ import { DICE_COMPILED_PATTERNS } from "@dicelette/utils" ;
22import { describe , expect , it } from "vitest" ;
33import { composeRollBase , extractComparator , getThreshold } from "../src/compose_roll" ;
44
@@ -181,7 +181,7 @@ describe("composeRollBase", () => {
181181 const r = composeRollBase (
182182 "2d6>=10" ,
183183 undefined ,
184- QUERY_URL_PATTERNS . COMPARATOR ,
184+ DICE_COMPILED_PATTERNS . COMPARATOR ,
185185 undefined ,
186186 undefined ,
187187 "" ,
@@ -195,7 +195,7 @@ describe("composeRollBase", () => {
195195 const r = composeRollBase (
196196 "2d6>=10" ,
197197 undefined ,
198- QUERY_URL_PATTERNS . COMPARATOR ,
198+ DICE_COMPILED_PATTERNS . COMPARATOR ,
199199 undefined ,
200200 undefined ,
201201 "+3" ,
@@ -207,7 +207,7 @@ describe("composeRollBase", () => {
207207 const r = composeRollBase (
208208 "2d6>=10" ,
209209 ">=15" ,
210- QUERY_URL_PATTERNS . COMPARATOR ,
210+ DICE_COMPILED_PATTERNS . COMPARATOR ,
211211 undefined ,
212212 undefined ,
213213 "" ,
@@ -220,7 +220,7 @@ describe("composeRollBase", () => {
220220 const r = composeRollBase (
221221 "2d6{cf:<=2}>=10" ,
222222 undefined ,
223- QUERY_URL_PATTERNS . COMPARATOR ,
223+ DICE_COMPILED_PATTERNS . COMPARATOR ,
224224 undefined ,
225225 undefined ,
226226 "" ,
@@ -232,7 +232,7 @@ describe("composeRollBase", () => {
232232 const r = composeRollBase (
233233 "1d20+strength>=15" ,
234234 undefined ,
235- QUERY_URL_PATTERNS . COMPARATOR ,
235+ DICE_COMPILED_PATTERNS . COMPARATOR ,
236236 { strength : 3 } ,
237237 undefined ,
238238 "" ,
@@ -246,7 +246,7 @@ describe("composeRollBase", () => {
246246 const r = composeRollBase (
247247 "1d20>=strength+5" ,
248248 undefined ,
249- QUERY_URL_PATTERNS . COMPARATOR ,
249+ DICE_COMPILED_PATTERNS . COMPARATOR ,
250250 { strength : 4 } ,
251251 undefined ,
252252 "" ,
@@ -260,7 +260,7 @@ describe("composeRollBase", () => {
260260 const r = composeRollBase (
261261 "1d20>=10" ,
262262 ">=strength+5" ,
263- QUERY_URL_PATTERNS . COMPARATOR ,
263+ DICE_COMPILED_PATTERNS . COMPARATOR ,
264264 { strength : 6 } ,
265265 undefined ,
266266 "" ,
0 commit comments