This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<types> | |
<members>Lookup</members> | |
<name>AuraDefinitionBundle</name> | |
</types> | |
<types> | |
<members>LexComponentLookupDemo-1</members> | |
<name>Flow</name> | |
</types> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Using Heroku Postgres DB locally in PHP</title> | |
<link rel="icon" href="https://jitendrazaa.com/favicon.ico" type="image/x-icon" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application > | |
<c:lts_jasmineRunner testFiles="{!join(',', | |
$Resource.jasmineHelloWorldTests, | |
$Resource.JasmineTestDatatable | |
)}" /> | |
</aura:application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Lightning Component Testing Examples", function(){ | |
afterEach(function() { | |
// Each spec (test) renders its components into the same div, | |
// so we need to clear that div out at the end of each spec. | |
$T.clearRenderedTestComponents(); | |
}); | |
describe('c:PersonDemo', function(){ | |
it('Is Datatable Populated', function(done) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application extends="force:slds"> | |
<c:PersonDemo /> | |
</aura:application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Jasmine Demo</title> | |
<!-- #Jasmine Files --> | |
<link rel="shortcut icon" type="image/png" href="js/lib/jasmine-3.1.0/jasmine_favicon.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Test Person Object", function(){ | |
var per; | |
beforeEach(function(){ | |
per = new Person("Rudra","Zaa",20,"Black"); | |
}); | |
it("Get Correct Full Name", function(){ | |
expect(per.name()).toEqual("Rudra Zaa"); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(first,last,age,eyecolor){ | |
this.firstName = first; | |
this.lastName = last; | |
this.age = age; | |
this.eyeColor = eyecolor; | |
} | |
Person.prototype.name = function(){ | |
return this.firstName+ " "+this.lastName; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Desc - Salesforce Connect Custom Adapter using Apex | |
* @Date - 1-March-2018 | |
* @Author - Jitendra Zaa | |
* */ | |
global class ExternalDS_Healthcare extends DataSource.Connection { | |
private String EXTERNAL_SRC_URL = 'https://www.healthcare.gov/api/blog.json'; | |
private final String EXTERNAL_SRC_BASEURL = 'https://www.healthcare.gov'; | |
private final String COL_HEADER_TITLE = 'title'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method is called everytime when SOQL is issued against external Object | |
* or while using list view or viewing detail page. | |
* | |
* Note : Ideally searching should be done at server side however for sake of | |
* simplicity, we would be using "DataSource.QueryUtils" class provided by | |
* Salesforce. In this case, filtering and sorting would be done in Salesforce | |
* once response returned by external REST API | |
* */ | |
override global DataSource.TableResult query( DataSource.QueryContext context) { |