import { assert } from "chai" ; import * as logging from "../logging" ; import * as objectTools from "./object-tools" ; suite ( "removeKey" , function ( ) { test ( "works" , function ( ) { const give = { one : 1 , octokit : { } , sub : { two : 2 , octokit : { } , } , } ; const want = { one : 1 , sub : { two : 2 , } , } ; objectTools . removeKeys ( give , "octokit" ) ; assert . deepEqual ( give , want ) ; } ) ; } ) ;