Skip to content

Commit

Permalink
test: recover Octokit.plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Feb 3, 2020
1 parent dec7334 commit b101e63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/deprecations-test.js
Expand Up @@ -11,7 +11,7 @@ const Mocktokit = Octokit.plugin(octokit => {
});

describe("deprecations", () => {
it('const Octokit = require("@octokit/rest")', () => {
it.only('const Octokit = require("@octokit/rest")', () => {
let warnCalledCount = 0;
new DeprecatedOctokit({
log: {
Expand All @@ -23,6 +23,7 @@ describe("deprecations", () => {

expect(warnCalledCount).to.equal(1);
expect(() => new DeprecatedOctokit()).to.not.throw();
expect(typeof DeprecatedOctokit.plugin).to.equal('function');
});
it("octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", () => {
let warnCalledCount = 0;
Expand Down

0 comments on commit b101e63

Please sign in to comment.