summaryrefslogtreecommitdiffstats
path: root/services/common/tests/unit/test_utils_atob.js
blob: 9e24b56f6fca8d0563ed1c1a25a6a4c372f6c3bb (plain)
1
2
3
4
5
6
7
8
9
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function run_test() {
  let data = ["Zm9vYmE=", "Zm9vYmE==", "Zm9vYmE==="];
  for (let d in data) {
    Assert.equal(CommonUtils.safeAtoB(data[d]), "fooba");
  }
}