Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created October 28, 2013 09:46
Show Gist options
  • Select an option

  • Save justinvdm/7194041 to your computer and use it in GitHub Desktop.

Select an option

Save justinvdm/7194041 to your computer and use it in GitHub Desktop.
diff --git a/diamondash/client/tests/components/structures.test.js b/diamondash/client/tests/components/structures.test.js
index 4722b8b..90cb04d 100644
--- a/diamondash/client/tests/components/structures.test.js
+++ b/diamondash/client/tests/components/structures.test.js
@@ -11,12 +11,12 @@ describe("diamondash.components.structures", function() {
});
describe(".add", function() {
- it("should register a widget type", function() {
+ it("should register the given item", function() {
registry.add('b', 'bar');
assert.equal(registry.items.b, 'bar');
});
- it("should throw an error if the widget type already exists",
+ it("should throw an error if the given item already exists",
function() {
assert.throws(function() {
registry.add('a', 'baz');
@@ -35,13 +35,13 @@ describe("diamondash.components.structures", function() {
});
describe(".get", function() {
- it("should retrieve the widget type", function() {
+ it("should retrieve the item", function() {
assert.deepEqual(registry.get('a'), 'foo');
});
});
describe(".remove", function() {
- it("should remove the widget from the registry", function() {
+ it("should remove the item from the registry", function() {
assert('a' in registry.items);
assert.equal(registry.get('a'), registry.remove('a'));
assert(!('a' in registry.items));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment