Updated tests

This commit is contained in:
inventor96
2019-09-16 15:56:26 -06:00
parent ddd8f63cbd
commit d3346fe3dd
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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();