mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-11 01:36:16 +00:00
feature: Update the version to 2.60.0 and improve the handling of human gestures, etc.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { QueryDiversityEngine } from '../src/util/QueryDiversityEngine'
|
||||
import { QueryDiversityEngine } from '../src/util/network/QueryDiversityEngine'
|
||||
|
||||
test('QueryDiversityEngine fetches and limits queries', async () => {
|
||||
const engine = new QueryDiversityEngine({
|
||||
@@ -13,7 +13,7 @@ test('QueryDiversityEngine fetches and limits queries', async () => {
|
||||
|
||||
assert.ok(queries.length > 0, 'Should return at least one query')
|
||||
assert.ok(queries.length <= 10, 'Should respect count limit')
|
||||
assert.ok(queries.every(q => typeof q === 'string' && q.length > 0), 'All queries should be non-empty strings')
|
||||
assert.ok(queries.every((q: string) => typeof q === 'string' && q.length > 0), 'All queries should be non-empty strings')
|
||||
})
|
||||
|
||||
test('QueryDiversityEngine deduplicates queries', async () => {
|
||||
|
||||
Reference in New Issue
Block a user