source: frontend/node_modules/@sinonjs/commons/lib/value-to-string.test.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 587 bytes
RevLine 
[9af201e]1"use strict";
2
3var assert = require("@sinonjs/referee-sinon").assert;
4var valueToString = require("./value-to-string");
5
6describe("util/core/valueToString", function () {
7 it("returns string representation of an object", function () {
8 var obj = {};
9
10 assert.equals(valueToString(obj), obj.toString());
11 });
12
13 it("returns 'null' for literal null'", function () {
14 assert.equals(valueToString(null), "null");
15 });
16
17 it("returns 'undefined' for literal undefined", function () {
18 assert.equals(valueToString(undefined), "undefined");
19 });
20});
Note: See TracBrowser for help on using the repository browser.