TBR: playground: Fix tests for lowercase VDL generated methods.
Tests broken by https://vanadium-review.googlesource.com/#/c/3850/
Change-Id: I5ab0fcc4849d0e9f5e93bc5cd703ed1338d08070
diff --git a/client/bundles/fortune/ex0_js/src/server/server.js b/client/bundles/fortune/ex0_js/src/server/server.js
index 79822b2..0b1833a 100644
--- a/client/bundles/fortune/ex0_js/src/server/server.js
+++ b/client/bundles/fortune/ex0_js/src/server/server.js
@@ -16,7 +16,7 @@
inherits(FortuneService, fortune.Fortune);
// Gets a random fortune
-FortuneService.prototype.GetRandomFortune = function(ctx) {
+FortuneService.prototype.getRandomFortune = function(ctx) {
var numExistingfortunes = this.fortunes.length;
if(numExistingfortunes === 0) {
throw new Error('Sorry! No fortune available :(');
@@ -28,7 +28,7 @@
};
// Adds a new fortune
-FortuneService.prototype.AddNewFortune = function(ctx, fortune) {
+FortuneService.prototype.addNewFortune = function(ctx, fortune) {
if(!fortune || fortune.trim() === '') {
throw new Error('Sorry! Can\'t add empty or null fortune!');
}
@@ -63,5 +63,5 @@
'Everything will now come your way.',
'Conquer your fears or they will conquer you.'
].forEach(function(fortune) {
- fortuneService.AddNewFortune(null, fortune);
+ fortuneService.addNewFortune(null, fortune);
});
diff --git a/go/src/playground/testdata/src/pong/pong.js b/go/src/playground/testdata/src/pong/pong.js
index 5edda64..4bc0bf5 100644
--- a/go/src/playground/testdata/src/pong/pong.js
+++ b/go/src/playground/testdata/src/pong/pong.js
@@ -7,7 +7,7 @@
inherits(PingPongService, pingpong.PingPong);
-PingPongService.prototype.Ping = function(ctx, message) {
+PingPongService.prototype.ping = function(ctx, message) {
console.log('[' + ctx.remoteBlessingStrings + '] ' + message);
return 'PONG';
};