v good
Some checks failed
Deploy to Pages / build (pull_request) Failing after 1m56s

This commit is contained in:
Andras Schmelczer 2026-05-16 13:46:19 +01:00
commit 10a81ba474
45 changed files with 1974 additions and 490 deletions

View file

@ -1,10 +1,11 @@
import { describe, expect, it } from 'vitest';
import { appConfig } from '../config';
import { GardenAudioEnergy } from './garden-audio-energy';
describe('GardenAudioEnergy', () => {
it('suspends activity but keeps a fading level when the gesture ends', () => {
const energy = new GardenAudioEnergy();
const energy = new GardenAudioEnergy(appConfig.audioEngine);
energy.beginGesture(0);
energy.recordStroke(0.8, 0.1);
@ -24,7 +25,7 @@ describe('GardenAudioEnergy', () => {
});
it('uses recent stroke intensity rather than gesture duration alone', () => {
const energy = new GardenAudioEnergy();
const energy = new GardenAudioEnergy(appConfig.audioEngine);
energy.beginGesture(0);
energy.recordStroke(1, 0.1);
@ -38,7 +39,7 @@ describe('GardenAudioEnergy', () => {
});
it('raises activity immediately when a stroke is recorded', () => {
const energy = new GardenAudioEnergy();
const energy = new GardenAudioEnergy(appConfig.audioEngine);
energy.beginGesture(0);
energy.recordStroke(0.12, 0.05);