MCPcopy Create free account
hub / github.com/daniellmb/angular-test-patterns / getFileExt

Function getFileExt

spec/example.tester.js:120–127  ·  view source on GitHub ↗
(lang)

Source from the content-addressed store, hash-verified

118};
119
120var getFileExt = function (lang) {
121 switch (lang) {
122 case 'CoffeeScript':
123 return '.coffee';
124 case 'JavaScript':
125 return '.js';
126 }
127};
128
129var getFileName = function (name, lang) {
130 return 'example/' + lang.toLowerCase() + '/' + name + getFileExt(lang);

Callers 1

getFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected