Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Removing this:any in favor of the correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
rorticus committed Aug 22, 2017
1 parent 9042573 commit da8f6b2
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 70 deletions.
6 changes: 3 additions & 3 deletions tests/functional/asyncAwait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { assert } = intern.getPlugin('chai');
import pollUntil from '@theintern/leadfoot/helpers/pollUntil';

registerSuite('asyncAwait', {
'Async/Await with Bluebird'(this: any) {
'Async/Await with Bluebird'() {
return this.remote
.get((<any> require).toUrl('./bluebird.html'))
.then(pollUntil(function () {
Expand All @@ -14,7 +14,7 @@ registerSuite('asyncAwait', {
});
},

'Async/Await with Dojo'(this: any) {
'Async/Await with Dojo'() {
return this.remote
.get((<any> require).toUrl('./asyncAwait.html'))
.then(pollUntil(function () {
Expand All @@ -25,7 +25,7 @@ registerSuite('asyncAwait', {
});
},

'Async/Await with Bluebird and Dojo'(this: any) {
'Async/Await with Bluebird and Dojo'() {
return this.remote
.get((<any> require).toUrl('./bluebirdAndDojo.html'))
.then(pollUntil(function () {
Expand Down
15 changes: 8 additions & 7 deletions tests/unit/Map.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { forOf, isIterable, IterableIterator, ShimIterator } from '../../src/iterator';
import Map from '../../src/Map';
import { Tests } from 'intern/lib/interfaces/object';

const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
Expand Down Expand Up @@ -55,7 +56,7 @@ registerSuite('Map', {
}
},

'delete': {
'delete': <Tests> {
before() {
map = new Map([
[ 3, 'abc' ],
Expand Down Expand Up @@ -100,8 +101,8 @@ registerSuite('Map', {
});
},

forEach: {
before(this: any) {
forEach: <Tests> {
before() {
function foo() {}
const object = Object.create(null);
const array: any[] = [];
Expand Down Expand Up @@ -133,8 +134,8 @@ registerSuite('Map', {
}
},

get: {
before(this: any) {
get: <Tests> {
before() {
map = new Map([
[ 0, 'a' ],
[ 8, 'b' ],
Expand All @@ -154,8 +155,8 @@ registerSuite('Map', {
}
},

has: {
before(this: any) {
has: <Tests> {
before() {
map = new Map<number, string>([
[ 3, 'abc' ]
]);
Expand Down
Loading

0 comments on commit da8f6b2

Please sign in to comment.