import { assert } from 'chai' ; import { ProgressCalculator } from './ProgressCalculator' ; describe ( 'ProgressTest' , function ( ) { it ( "Basic Progress" , async function ( ) { const progress = new ProgressCalculator ( 4 ) ; assert . equal ( progress . percentage ( ) , 0 ) ; progress . incr ( ) ; assert . equal ( progress . percentage ( ) , 25 ) ; progress . incr ( ) ; progress . incr ( ) ; progress . incr ( ) ; assert . equal ( progress . percentage ( ) , 100 ) ; } ) ; } ) ;