Skip to content

Commit

Permalink
fix: updated files to adhere to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
KKelvinLo committed Nov 11, 2020
1 parent 7359cb1 commit 7d6a1c0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ describe('awsEksDetector', () => {
const errorMsg = {
fileNotFoundError: new Error('cannot find cgroup file'),
};

const correctCgroupData =
'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm';
const mockedClusterResponse = 'my-cluster';
const mockedAwsAuth = 'my-auth';
const k8s_token = 'Bearer 31ada4fd-adec-460c-809a-9e56ceb75269';

let sandbox: sinon.SinonSandbox;
let readStub, fileStub, getCredStub;

beforeEach(() => {
sandbox = sinon.createSandbox();
nock.disableNetConnect();
Expand Down Expand Up @@ -80,8 +81,9 @@ describe('awsEksDetector', () => {
scope.done();

sandbox.assert.calledOnce(fileStub);
sandbox.assert.calledOnce(readStub);
sandbox.assert.calledOnce(getCredStub);
sandbox.assert.calledTwice(readStub);
sandbox.assert.calledTwice(getCredStub);

assert.ok(resource);
assertK8sResource(resource, {
clusterName: 'my-cluster',
Expand Down

0 comments on commit 7d6a1c0

Please sign in to comment.