blob: 686d014415f92ccb986771423b3b96c2ca320a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
define(function (require) {
var bdd = require('intern!bdd');
var assert = require('intern/chai!assert');
var csvEscape = require('../../build/js/libs/csv');
bdd.describe('#csvEscape', function () {
bdd.it('should escape', function () {
assert.equal(csvEscape('Hello, "World"!'), '"Hello, \\"World\\"!"');
});
bdd.it('should not escape', function () {
assert.equal(csvEscape('HelloWorld'), '"HelloWorld"');
});
});
});
|