{"id":16676635,"url":"https://github.com/princed/karma-expect","last_synced_at":"2025-10-29T02:40:52.617Z","repository":{"id":9666329,"uuid":"11606855","full_name":"princed/karma-expect","owner":"princed","description":"Expect.js adapter for Karma test runner","archived":false,"fork":false,"pushed_at":"2017-09-12T00:52:52.000Z","size":29,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T07:38:50.175Z","etag":null,"topics":["assertions","expect","karma","karma-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/princed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-23T11:35:55.000Z","updated_at":"2022-02-18T10:12:48.000Z","dependencies_parsed_at":"2022-09-01T03:50:46.138Z","dependency_job_id":null,"html_url":"https://github.com/princed/karma-expect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/princed/karma-expect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fkarma-expect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fkarma-expect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fkarma-expect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fkarma-expect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princed","download_url":"https://codeload.github.com/princed/karma-expect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fkarma-expect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264684974,"owners_count":23649367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","expect","karma","karma-plugin"],"created_at":"2024-10-12T13:11:07.131Z","updated_at":"2025-10-29T02:40:47.582Z","avatar_url":"https://github.com/princed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[karma](http://karma-runner.github.io)-[expect](https://github.com/Automattic/expect.js)\n============\n\n[![Dependency Status](https://img.shields.io/david/princed/karma-expect.svg)](https://david-dm.org/princed/karma-expect) [![Greenkeeper badge](https://badges.greenkeeper.io/princed/karma-expect.svg)](https://greenkeeper.io/) [![NPM version](https://img.shields.io/npm/v/karma-expect.svg)](https://www.npmjs.com/package/karma-expect) [![NPM downloads](https://img.shields.io/npm/dt/karma-expect.svg)](https://www.npmjs.com/package/karma-expect) [![Travis CI](https://img.shields.io/travis/princed/karma-expect.svg)](https://travis-ci.org/princed/karma-expect)\n\nMotivation\n----------\n\nYou should use it only if you want run tests in **IE8 and lower**, otherwise consider [karma-chai-plugins](https://github.com/princed/karma-chai-plugins/), which provides more complete [Chai](http://chaijs.com/) assertions as well as additional plugins.\n\nInstallation\n------------\n\nInstall the module from npm:\n\n```sh\n$ npm install karma-expect --save-dev\n```\n\nAdd `expect` to the `frameworks` key in your Karma configuration:\n\n```js\nmodule.exports = function(karma) {\n  karma.set({\n\n    // frameworks to use\n    frameworks: ['mocha', 'expect']\n\n    // ...\n  });\n};\n```\n\n\nUsage\n-----\n\nExpect.js assertions are available in the tests:\n\n```js\ndescribe('karma tests with expect', function() {\n  it('should expose expect method', function() {\n    expect('foo').to.not.equal('bar');\n  });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fkarma-expect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprinced%2Fkarma-expect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fkarma-expect/lists"}