Thursday, 9 June 2016

TypeError: (0 , _chai.expect)(...).toBe is not a function

Error while running Mocha tests:

TypeError: (0 , _chai.expect)(...).toBe is not a function


By doing some research, came to see that I need to use a different syntax while using 'chai'

By changing my test cases as below got worked.

expect(true).to.be.true;
expect(false).to.be.false;

Thank You,
Uma Mahesh.


Wednesday, 8 June 2016

jsdom

A JavaScript implementation of the DOM and HTML standards

Install:
$ npm install jsdom

 Its much more like DOM

its mainly used for testing 

Its creates a virtual DOM.. there is no browser and no selenium scripts... 





Thank You,
Uma Mahesh.

get latest code and rebase to local branch



> git branch

> git checkout develop

To fetch all remote branches.
> git fetch origin

To rebase local develop branch with remote develop branch.
> git rebase origin/develop

> git checkout <your branch>

to rebase local branch with develop branch
> git rebase develop


Thank You,
Uma Mahesh.







Tuesday, 7 June 2016

command to delete remote branch from git

Here is the command to delete branch from remote repo in git


> git push origin --delete <Branch name>


This will delete branch from local machine as well as remote repo.

Thank You,
Uma Mahesh.