コード例 #1
0
ファイル: property-of.js プロジェクト: sgmap/pix-live
export function propertyOf(params) {
  const map = params[0];
  const key = params[1];
  if (_.isObject(map) && _.isString(key)) {
    return map[key];
  }
  return '';
}
コード例 #2
0
ファイル: feedback-panel-test.js プロジェクト: sgmap/pix-live
 return wait().then(() => {
   expect(isSaveMethodCalled).to.be.true;
   expect(saveMethodUrl).to.equal('feedback');
   expect(_.isObject(saveMethodBody)).to.equal(true);
   expect(saveMethodBody.assessment).to.exist;
   expect(saveMethodBody.challenge).to.exist;
   expect(saveMethodBody.content).to.equal(CONTENT_VALUE);
   expect(saveMethodBody.email).to.equal(EMAIL_VALUE);
   expectMercixViewToBeVisible(this);
 });