Giter VIP home page Giter VIP logo

corti's People

Contributors

dependabot[bot] avatar greenkeeperio-bot avatar talater avatar theluk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

theluk kav wildgenie

corti's Issues

Corti.patch() isn't adding the mock SpeechRecognition object

Corti.patch() isn't adding the mock SpeechRecognition object. I keep getting an error that says SpeechRecognition is not a function.

Expected Behavior

Expect Corti.patch() to add a mock SpeechRecognition. When testing after calling Corti.patch() expect window.SpeechRecognition to be defined.

Current Behavior

Getting error that says SpeechRecognition is not a function even after calling Corti.patch(). I tried running the tested from the CortiSpec.js file and I get the same error.

Possible Solution

Steps to Reproduce (for bugs)

  1. Require Corti into test file using:
 const { Corti } = require('./node_modules/corti/src/corti')
  1. Check if Corti is an object:
expect(typeof Corti).toBe('object') //test passed
  1. Check if Corti,patch is a function:
expect(typeof Corti.patch).toBe('function') //test passed
  1. Check if Corti.patch mocks the SpeechRecognition object:
Corti.patch() 
excpect(window.SpeechRecognition).toBeDefined() //fails returns undefined

Context

I am trying to test a package I wrote that makes it easier to use the web speech API. Here is the new_test branch where I am trying to use Corti to mock the SpeechRecognition API: https://github.com/matoval/web-voice-command/tree/new_tests

Your Environment

An in-range update of grunt is breaking the build 🚨

Version 1.0.2 of grunt was just published.

Branch Build failing 🚨
Dependency grunt
Current Version 1.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

grunt is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 27 commits.

  • ccc3163 v1.0.2
  • e7795dc Remove iojs from test matrix (#1622)
  • a6a133b Remove deprecation warning for coffeescript (#1621) r=@vladikoff
  • 06b377e https links to webchat.freenode.net and gruntjs.com (#1610)
  • 7c5242f Use node executable for local grunt bin for Windows support
  • f6cbb63 Oh right, Windows isnt bash
  • a9a20da Try and debug why appveyor is failing on npm
  • 48bba6c Move to the test script to avoid npm was unexpected at this time.
  • 6b97ac0 Try to fix appveyor script
  • 19003ba For appveyor, check node version to decide whether to install npm@3
  • 3fcf921 Install npm@3 if npm version is npm 1 or 2
  • 77fc157 Use the local version of grunt to run tests
  • 400601a Updating devDependencies
  • 6592ad1 Update travis/appveyor to node versions we support
  • b63aeec Dont manually install npm, use the version each node version corresponds with

There are 27 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Simulate error throwing

  • Should be able to throw error events.
  • Simulate a network error.
  • Simulate permission error.
  • Allow attaching onerror callbacks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.