'use strict';

import ClassData from '../../../src/Meta/ClassData';

describe("Meta Class Data", function(){

    it("can create new instance", function(){

        let target = {};
        let data = {
            a: true,
            b: false
        };

        let metaData = new ClassData(target, data);

        expect(metaData).toBeTruthy();
        expect(metaData.target).toBe(target);
        expect(metaData.data).toBe(data);
    });

    it("has no dependencies by default", function(){
        let target = {};
        let data = {
            a: true,
            b: false
        };

        let metaData = new ClassData(target, data);

        console.log('default dependencies', metaData.dependencies);

        expect(metaData.dependencies.length).toBe(0);
    });

    it("can set and get dependencies data", function(){
        let target = {};
        let data = {
            a: true,
            b: false
        };

        let dependencies = ['a', 'b', 'c'];

        let metaData = new ClassData(target, data);
        metaData.dependencies = dependencies;

        console.log('dependencies', metaData.dependencies);

        expect(metaData.dependencies).toBe(dependencies);
    });

});
@@ -258,32 +258,37 @@
         let meta
+Class
 Data = new Class
@@ -323,24 +323,29 @@
  expect(meta
+Class
 Data).toBeTr
@@ -367,24 +367,29 @@
  expect(meta
+Class
 Data.target)
@@ -418,24 +418,29 @@
  expect(meta
+Class
 Data.data).t
@@ -620,32 +620,37 @@
         let meta
+Class
 Data = new Class
@@ -710,32 +710,37 @@
 endencies', meta
+Class
 Data.dependencie
@@ -755,32 +755,37 @@
      expect(meta
+Class
 Data.dependencie
@@ -1025,24 +1025,29 @@
     let meta
+Class
 Data = new C
@@ -1078,24 +1078,29 @@
         meta
+Class
 Data.depende
@@ -1158,24 +1158,29 @@
 ncies', meta
+Class
 Data.depende
@@ -1207,16 +1207,21 @@
 ect(meta
+Class
 Data.dep

Change names