Sha256: b1e82fce8b33c6fb62ca5023e1d3d11dd7cbc155520a643ba57387d4165b92d7
Contents?: true
Size: 1000 Bytes
Versions: 29
Compression:
Stored size: 1000 Bytes
Contents
describe("$tDiary", function() { beforeEach(function() { }); it("should exist a global $tDiary object", function() { expect($tDiary).toEqual(jasmine.any(Object)); expect($tDiary.plugin).toEqual(jasmine.any(Object)); }); }); describe("$", function() { describe("#makePluginTag", function() { describe("when Wiki style", function() { beforeEach(function() { $tDiary.style = 'wiki'; }); it('should create wiki style plugin tag', function() { var tag = $.makePluginTag("plugin_name", ["param1", "param2"]); expect(tag).toEqual('{{plugin_name "param1", "param2"}}'); loadFixtures('00default.html'); }); }); }); describe("#insertAtCaret", function() { beforeEach(function() { loadFixtures('00default.html'); }); it('should insert text to the textarea', function() { $('#body').insertAtCaret('[category] '); expect($('#body').val()).toEqual('[category] sample diary'); }); }); });
Version data entries
29 entries across 29 versions & 1 rubygems