mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Updated tests
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ describe('ar2', function ( ) {
|
||||
|
||||
ar2.virtAsst.intentHandlers[0].intentHandler(function next(title, response) {
|
||||
title.should.equal('AR2 Forecast');
|
||||
response.should.equal('You are expected to be between 109 and 120 over the in 30 minutes');
|
||||
response.should.equal('According to the AR2 forecast you are expected to be between 109 and 120 over the next in 30 minutes');
|
||||
done();
|
||||
}, [], sbx);
|
||||
});
|
||||
|
||||
+1
-1
@@ -262,7 +262,7 @@ describe('loop', function ( ) {
|
||||
response.should.equal('According to the loop forecast you are expected to be between 147 and 149 over the next in 25 minutes');
|
||||
|
||||
loop.virtAsst.intentHandlers[1].intentHandler(function next(title, response) {
|
||||
title.should.equal('Last loop');
|
||||
title.should.equal('Last Loop');
|
||||
response.should.equal('The last successful loop was a few seconds ago');
|
||||
done();
|
||||
}, [], sbx);
|
||||
|
||||
@@ -389,7 +389,7 @@ describe('openaps', function ( ) {
|
||||
response.should.equal('The OpenAPS Eventual BG is 125');
|
||||
|
||||
openaps.virtAsst.intentHandlers[1].intentHandler(function next(title, response) {
|
||||
title.should.equal('Last loop');
|
||||
title.should.equal('Last Loop');
|
||||
response.should.equal('The last successful loop was 2 minutes ago');
|
||||
done();
|
||||
}, [], sbx);
|
||||
|
||||
+4
-4
@@ -269,19 +269,19 @@ describe('pump', function ( ) {
|
||||
pump.virtAsst.intentHandlers.length.should.equal(4);
|
||||
|
||||
pump.virtAsst.intentHandlers[0].intentHandler(function next(title, response) {
|
||||
title.should.equal('Remaining insulin');
|
||||
title.should.equal('Remaining Insulin');
|
||||
response.should.equal('You have 86.4 units remaining');
|
||||
|
||||
pump.virtAsst.intentHandlers[1].intentHandler(function next(title, response) {
|
||||
title.should.equal('Pump battery');
|
||||
title.should.equal('Pump Battery');
|
||||
response.should.equal('Your pump battery is at 1.52 volts');
|
||||
|
||||
pump.virtAsst.intentHandlers[2].intentHandler(function next(title, response) {
|
||||
title.should.equal('Remaining insulin');
|
||||
title.should.equal('Remaining Insulin');
|
||||
response.should.equal('You have 86.4 units remaining');
|
||||
|
||||
pump.virtAsst.intentHandlers[3].intentHandler(function next(title, response) {
|
||||
title.should.equal('Pump battery');
|
||||
title.should.equal('Pump Battery');
|
||||
response.should.equal('Your pump battery is at 1.52 volts');
|
||||
done();
|
||||
}, [], sbx);
|
||||
|
||||
+2
-2
@@ -109,11 +109,11 @@ describe('Uploader Battery', function ( ) {
|
||||
upbat.virtAsst.intentHandlers.length.should.equal(2);
|
||||
|
||||
upbat.virtAsst.intentHandlers[0].intentHandler(function next(title, response) {
|
||||
title.should.equal('Uploader battery');
|
||||
title.should.equal('Uploader Battery');
|
||||
response.should.equal('Your uploader battery is at 20%');
|
||||
|
||||
upbat.virtAsst.intentHandlers[1].intentHandler(function next(title, response) {
|
||||
title.should.equal('Uploader battery');
|
||||
title.should.equal('Uploader Battery');
|
||||
response.should.equal('Your uploader battery is at 20%');
|
||||
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user