Sha256: d01823ed81aa0b875089f3efe768216cafcaa92fc3ec9918ab086486d94ac766

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

angular.module("SWAT").factory "SwatHelpers", ->
  Helpers =
    formatTime: (seconds) ->
      hh = Math.floor(seconds / 3600)
      mm = Math.floor(seconds / 60) % 60
      ss = Math.floor(seconds) % 60
      (if hh then (if hh < 10 then '0' else '') + hh + ':' else '') + (if mm < 10 and hh then '0' else '') + mm + ':' + (if ss < 10 then '0' else '') + ss

    isSpecTraceLine: (line)->
      _.include(line, 'spec')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sw2at-ui-0.0.13 app/assets/javascripts/swat/app/factories/helpers.coffee
sw2at-ui-0.0.12 app/assets/javascripts/swat/app/factories/helpers.coffee