diff --git a/notNeededPackages.json b/notNeededPackages.json index cceec16c45..fc7a54dcce 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -384,6 +384,12 @@ "sourceRepoURL": "https://github.com/chaijs/chai-http", "asOfVersion": "4.2.0" }, + { + "libraryName": "chai-webdriverio", + "typingsPackageName": "chai-webdriverio", + "sourceRepoURL": "https://github.com/marcodejongh/chai-webdriverio", + "asOfVersion": "1.0.0" + }, { "libraryName": "chalk", "typingsPackageName": "chalk", diff --git a/types/chai-webdriverio/chai-webdriverio-tests.ts b/types/chai-webdriverio/chai-webdriverio-tests.ts deleted file mode 100644 index 989eb64960..0000000000 --- a/types/chai-webdriverio/chai-webdriverio-tests.ts +++ /dev/null @@ -1,30 +0,0 @@ -import chai = require('chai'); -import webdriverio = require('webdriverio'); -import chaiWebdriverio = require('chai-webdriverio'); - -const options = { - desiredCapabilities: { - browserName: 'firefox' - } -}; - -const browser = webdriverio.remote(options); -chai.use(chaiWebdriverio(browser)); - -const selector = 'Hello, World!'; - -chai.expect(selector).to.be.there(); - -chai.expect(selector).to.be.visible(); - -chai.expect(selector).to.have.text(selector); - -chai.expect(selector).to.have.text(/regex/); - -chai.expect(selector).to.have.count(10); - -chai.expect(selector).to.have.value('x'); - -chai.expect(selector).to.have.value(/regex/); - -chai.expect(selector).to.have.focus(); diff --git a/types/chai-webdriverio/index.d.ts b/types/chai-webdriverio/index.d.ts deleted file mode 100644 index 3ca6f01fde..0000000000 --- a/types/chai-webdriverio/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Type definitions for chai-webdriverio 0.4 -// Project: https://github.com/marcodejongh/chai-webdriverio -// Definitions by: Nikolai Orekhov -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 - -/// -/// - -declare namespace Chai { - interface Assertion { - count: (count: number) => void; - focus: () => void; - text: (expected: string|number|RegExp) => void; - there: () => void; - value: (expected: string|number|RegExp) => void; - visible: () => void; - immediately: Assertion; - } -} - -declare module 'chai-webdriverio' { - function chaiWebdriverIO(client: WebdriverIO.Client, options?: any): Chai.ChaiPlugin; - export = chaiWebdriverIO; -} diff --git a/types/chai-webdriverio/package.json b/types/chai-webdriverio/package.json deleted file mode 100644 index cd495fe983..0000000000 --- a/types/chai-webdriverio/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "@types/webdriverio": "^4.0.0" - } -} diff --git a/types/chai-webdriverio/tsconfig.json b/types/chai-webdriverio/tsconfig.json deleted file mode 100644 index c44958af89..0000000000 --- a/types/chai-webdriverio/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "chai-webdriverio-tests.ts" - ] -} \ No newline at end of file diff --git a/types/chai-webdriverio/tslint.json b/types/chai-webdriverio/tslint.json deleted file mode 100644 index 1be28efd2f..0000000000 --- a/types/chai-webdriverio/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-single-declare-module" : false, - "no-declare-current-package": false - } -}