- FIX: Packages updated.
- FIX: Missing some 'use strict'.
This commit is contained in:
parent
8ba9cfbaf6
commit
a2fdfcbc91
13 changed files with 418 additions and 412 deletions
|
|
@ -1,5 +1,14 @@
|
|||
# History
|
||||
|
||||
## Version 0.0.30
|
||||
|
||||
- FIX: Packages updated.
|
||||
- FIX: Missing some 'use strict'.
|
||||
|
||||
## Version 0.0.29
|
||||
|
||||
- FIX: Packages updated.
|
||||
|
||||
## Version 0.0.28
|
||||
|
||||
- FIX: Package compiled.
|
||||
|
|
|
|||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "0.0.26",
|
||||
"version": "0.0.30",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.30",
|
||||
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp)",
|
||||
"main": "dist/src/index.js",
|
||||
"types": "dist/src/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,21 +28,20 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
|
||||
"use strict";
|
||||
\******************************************************************************/
|
||||
|
||||
'use strict';
|
||||
|
||||
export enum GBERROR_TYPE {
|
||||
generalError = 2,
|
||||
nlpGeneralError = 3,
|
||||
}
|
||||
|
||||
export class GBError{
|
||||
static createFromCode(GBERROR_TYPE): any {}
|
||||
export class GBError {
|
||||
static createFromCode(GBERROR_TYPE): any { }
|
||||
|
||||
getMessageFromErrorCode(type: GBERROR_TYPE) {
|
||||
if (type == GBERROR_TYPE.nlpGeneralError){
|
||||
if (type == GBERROR_TYPE.nlpGeneralError) {
|
||||
return `GuaribasBusinessError: Error accessing NLP, check of the service.`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,14 +28,15 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
'use strict';
|
||||
|
||||
import { UniversalBot } from "botbuilder";
|
||||
import { IGBInstance } from "./IGBinstance";
|
||||
import { IGBCoreService } from "./IGBCoreService";
|
||||
import { IGBConversationalService, IGBPackage } from ".";
|
||||
import { AzureText } from "pragmatismo-io-framework";
|
||||
import { UniversalBot } from 'botbuilder';
|
||||
import { AzureText } from 'pragmatismo-io-framework';
|
||||
import { IGBInstance } from './IGBinstance';
|
||||
import { IGBCoreService } from './IGBCoreService';
|
||||
import { IGBConversationalService, IGBPackage } from '.';
|
||||
|
||||
/** Minimal services for bot. */
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,12 +28,12 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
import { GBError } from './GBError';
|
||||
|
||||
export interface GBServiceCallback<T> { (data: T, error: GBError): void }
|
||||
|
||||
export class GBService {}
|
||||
export class GBService { }
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,13 +28,13 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
import { UniversalBot, Session } from "botbuilder";
|
||||
import { GBMinInstance } from "./GBMinInstance";
|
||||
import { GBServiceCallback } from "./GBService";
|
||||
import { UniversalBot, Session } from 'botbuilder';
|
||||
import { GBMinInstance } from './GBMinInstance';
|
||||
import { GBServiceCallback } from './GBService';
|
||||
|
||||
export interface IGBConversationalService {
|
||||
sendEvent(session: Session, name: string, value: any);
|
||||
|
|
@ -44,5 +44,4 @@ export interface IGBConversationalService {
|
|||
text: string,
|
||||
cb: GBServiceCallback<any>
|
||||
);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,15 +28,15 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
import { UniversalBot, Session } from "botbuilder";
|
||||
import { GBMinInstance } from "./GBMinInstance";
|
||||
import { GBServiceCallback } from "./GBService";
|
||||
import { Sequelize } from "sequelize-typescript";
|
||||
import { IGBInstance } from "./IGBInstance";
|
||||
import { Sequelize } from 'sequelize-typescript';
|
||||
import { UniversalBot, Session } from 'botbuilder';
|
||||
import { GBMinInstance } from './GBMinInstance';
|
||||
import { GBServiceCallback } from './GBService';
|
||||
import { IGBInstance } from './IGBInstance';
|
||||
|
||||
export interface IGBCoreService {
|
||||
sequelize: Sequelize;
|
||||
|
|
@ -44,5 +44,4 @@ export interface IGBCoreService {
|
|||
syncDatabaseStructure(cb);
|
||||
loadInstances(cb: GBServiceCallback<IGBInstance[]>);
|
||||
loadInstance(botId: string, cb: GBServiceCallback<IGBInstance>);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,9 +28,9 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
import {
|
||||
IChatConnectorSettings,
|
||||
|
|
@ -40,13 +40,13 @@ import {
|
|||
Prompts,
|
||||
ChatConnector,
|
||||
UniversalBot
|
||||
} from "botbuilder";
|
||||
import { GBService } from "./GBService";
|
||||
} from 'botbuilder';
|
||||
|
||||
import { GBService } from './GBService';
|
||||
|
||||
export class IGBDialog {
|
||||
bot: UniversalBot;
|
||||
service: GBService;
|
||||
constructor(bot: UniversalBot) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,12 +28,12 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
export interface IGBInstance {
|
||||
botId:string;
|
||||
botId: string;
|
||||
whoAmIVideo: string;
|
||||
instanceId: number;
|
||||
title: string;
|
||||
|
|
@ -63,4 +63,4 @@ export interface IGBInstance {
|
|||
nlpVsSearch: number;
|
||||
searchScore: number;
|
||||
nlpScore: number;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,17 +28,16 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
'use strict';
|
||||
|
||||
import { IGBCoreService } from './IGBCoreService';
|
||||
import { Sequelize, Model } from 'sequelize-typescript';
|
||||
import { GBMinInstance } from '.';
|
||||
import { Sequelize } from 'sequelize-typescript';
|
||||
import { Session } from 'botbuilder';
|
||||
import { IGBCoreService } from './IGBCoreService';
|
||||
import { GBMinInstance } from '.';
|
||||
|
||||
"use strict";
|
||||
|
||||
export interface IGBPackage{
|
||||
export interface IGBPackage {
|
||||
|
||||
/** Each app has its own set of sys packages. */
|
||||
sysPackages: IGBPackage[];
|
||||
|
|
@ -57,5 +56,4 @@ export interface IGBPackage{
|
|||
|
||||
/** Called in each new session. */
|
||||
onNewSession(min: GBMinInstance, session: Session): void;
|
||||
|
||||
}
|
||||
17
src/index.ts
17
src/index.ts
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,9 +28,11 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
export { Sequelize } from 'sequelize';
|
||||
|
||||
import { GBMinInstance } from './GBMinInstance';
|
||||
import { GBService } from './GBService';
|
||||
|
|
@ -49,4 +51,3 @@ export { GBError, GBERROR_TYPE } from './GBError';
|
|||
export { GBService } from './GBService';
|
||||
export { GBServiceCallback } from './GBService';
|
||||
export { GBMinInstance } from './GBMinInstance';
|
||||
export { Sequelize } from 'sequelize';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*****************************************************************************\
|
||||
/******************************************************************************\
|
||||
| ( )_ _ |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ ` _ `\ /'_`\ |
|
||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
|
||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
|
||||
| | | ( )_) | |
|
||||
| (_) \___/' |
|
||||
| |
|
||||
|
|
@ -28,17 +28,17 @@
|
|||
| trademark license. Therefore any rights, title and interest in |
|
||||
| our trademarks remain entirely with us. |
|
||||
| |
|
||||
\*****************************************************************************/
|
||||
\******************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
const assert = require('assert');
|
||||
|
||||
describe('Array', () => {
|
||||
describe('#indexOf()', () => {
|
||||
|
||||
it('should return -1 when the value is not present',()=> {
|
||||
assert.equal([1,2,3].indexOf(4), -1);
|
||||
it('should return -1 when the value is not present', () => {
|
||||
assert.equal([1, 2, 3].indexOf(4), -1);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue