Okay so let me come straight to the point that all of us need to provide multi-language support with our websites at some point of time. In such a competitive time, if we can find a short and effective way to do it without getting into much complexity then we are definitely one step ahead […]
Use Case While writing functional tests sometimes we need to test whether a certain javascript objects have some particular values. If we have a JavaScript object such as in our page [code] var myObj = { attr1 : ‘attr1-val’, attr2 : ‘attr2-val’}; [/code] then after reaching that page we can execute the below in our GEB […]
AngularJSFront End DevelopmentNode.js
There’s a phase in every project when development reaches its completion and next step is to make it search engine friendly. When I had to do this task in my project, at that time I was a little bit confident that this is a very simple task and we just need to set meta tags […]
We have been using Jasmine to test our angular code. Recently I came across a piece of code in Javascript which included a REST API call and returned a promise. The promise then had a success callback and all the rest of the play. So in this blog, I have tried to illustrate how to […]
About Sitemap Sitemap is an XML file that include URLs of a website and their basic information like last updated, how often it changes and how much important it is as compared to other URLs by giving its priority. Purpose of Sitemap The information listed in Sitemap.xml file is used by the search engines to […]
React-Router In this blog we will talk about react-router. Routing is a dire need in SPA(Single page applications), in which we load partial content without asking the server for a complete webpage. React is no different in terms of loading only what is required. Routing programmatically presents specific content to users based on the URL that […]
Javascript ninjas from TO THE NEW Digital travelled all the way to Bengaluru for JSChannel Conference 2015. DAY 1 The weather was perfect to start the first day of the conference. There were renowned Javascript aficionados present from all around the world. The day was kicked off with the keynote by Douglas Crockford(Author of […]
Meta Tags Meta tags in HTML documents provide metadata/information about a web page, or the content it contains. They must be declared within head section of the web page only. They are used to specify page description, keywords (for search purposes), author information or any other metadata giving additional information about the page. Meta tags […]
Jasmine is a behavior-driven development framework for testing JavaScript code. Many Jasmine users only use the default set of matchers which are extremely powerful, yet are unable to meet our requirements when dealing with complicated or custom code. Jasmine provides a wide list of built-in matchers: Arrays: [javascript] expect(array).toBeArray(); expect(array).toBeArrayOfNumbers(); expect(array).toBeEmptyArray();[/javascript] Booleans: [javascript] expect(boolean).toBeBoolean(); expect(boolean).toBeFalse(); […]