Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Teh liu public patch 1 #12

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions force-app/main/default/classes/DemoController.cls
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
public with sharing class DemoController {
private static final String version = '1.0.8';
/**
* An empty constructor for the testing
*/
public DemoController() {}
public DemoController() {
}


/**
* Get the version of the SFDX demo app
*/
public String getAppVersion() {
return '1.0.0';
return version;
}
}
5 changes: 3 additions & 2 deletions force-app/test/default/classes/DemoControllerTests.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
private class DemoControllerTests {
@IsTest
static void testGetAppVersion() {
String version = '1.0.8';
DemoController demo = new DemoController();
System.assertEquals(demo.getAppVersion(), '1.0.0');
System.assertEquals(demo.getAppVersion(), version);
}
}
}
12 changes: 9 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"packageDirectories": [
{
"path": "force-app",
"default": true
"default": true,
"package": "SamplePkg2",
"versionName": "ver 0.8",
"versionNumber": "0.1.0.NEXT"
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "43.0"
}
"sourceApiVersion": "43.0",
"packageAliases": {
"SamplePkg2": "0Ho2E000000CaXySAK"
}
}