GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sethmcl/chrome-mock: Chrome API mocking library.

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
codegen
codegen
 
 
grunt
grunt
 
 
lib
lib
 
 
test
test
 
 
.coveralls.yml
.coveralls.yml
 
 
.editorconfig
.editorconfig
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Gruntfile.js
Gruntfile.js
 
 
README.md
README.md
 
 
browser.js
browser.js
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

chrome-mock

Chrome API mocking library.

npm install chrome-mock

Build Status Coverage Status

usage

In most cases you will want to set this as a global at the top of your test file, because chrome is a global in your extension code.

chrome = require('chrome-mock')

i18n

To use the I18n library, chrome-mock loads a default messages.json file that has only one string in it, 'test' If you pass a string that does not exist, you will receive a blank string back.

If you want to load a different messages.json file, for example the one you use in your chrome extension then use the method below in your test file.

chrome.setMessagesPath(path)

About

Chrome API mocking library.

Resources

Readme
Activity

Stars

28 stars

Watchers

4 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.