Added tests and upgrade for ignorefile api call

ignorefile api call duplicate test upgrade and added proper unit test and click test for ignore file.


Unit test

* create test file and add test file to .gitignore
* create test file and add test file to .gitignore when .gitignore file is missing
* attempt to add duplicate file to .gitignore
* attempt to add "test.txt" to .gitignore when "test" entry exist in .gitignore

Click test

*trigger ignorefile api call via click event