fix(core): update

This commit is contained in:
Philipp Kunz 2018-11-05 23:52:39 +01:00
parent 373b02adb4
commit b65f3af9cf
3 changed files with 5 additions and 5 deletions

View File

@ -49,9 +49,9 @@ const smartlogPackage: ILogPackage = {
message: 'this is an awesome log message sent by the tapbundle test' message: 'this is an awesome log message sent by the tapbundle test'
}; };
const logDnaMessage = LogdnaMessage.fromSmartLogPackage(smartlogPackage); const logdnaMessage = LogdnaMessage.fromSmartLogPackage(smartlogPackage);
logDnaAccount.sendLogDnaMessage(logDnaMessage); logDnaAccount.sendLogdnaMessage(logdnaMessage);
// alternatively simply send the smartlogPackage // alternatively simply send the smartlogPackage
// creation of the LogdnaMessage is done for you // creation of the LogdnaMessage is done for you

View File

@ -31,7 +31,7 @@ tap.test('should create a standard log message', async () => {
}); });
tap.test('should send the message', async () => { tap.test('should send the message', async () => {
await testLogDnaAccount.sendLogDnaMessage(testLogMessage); await testLogDnaAccount.sendLogdnaMessage(testLogMessage);
}); });
tap.test('should send in order', async () => { tap.test('should send in order', async () => {

View File

@ -22,7 +22,7 @@ export class LogdnaAccount {
* sends a logmessage * sends a logmessage
* async, so it returns a Promise. In most cases it does not make sense to wait for it though. * async, so it returns a Promise. In most cases it does not make sense to wait for it though.
*/ */
public async sendLogDnaMessage(logdnaMessageArg: LogdnaMessage) { public async sendLogdnaMessage(logdnaMessageArg: LogdnaMessage) {
const lm = logdnaMessageArg; const lm = logdnaMessageArg;
const euc = encodeURIComponent; const euc = encodeURIComponent;
@ -56,7 +56,7 @@ export class LogdnaAccount {
* convenience function for smartlog * convenience function for smartlog
*/ */
public async sendSmartlogPackage(smartlogPackageArg: ILogPackage) { public async sendSmartlogPackage(smartlogPackageArg: ILogPackage) {
this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); this.sendLogdnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg));
} }
/** /**