/**!
 *
 * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.
 */
import {assert} from '@ciscospark/test-helper-chai';
import Avatar, {config} from '../../';
// import '@ciscospark/test-helper-sinon';
import {MockSpark} from '@ciscospark/test-helper-mock-spark';

describe(`Services`, () => {
  describe(`Avatar`, () => {
    describe(`AvatarUrlBatcher`, () => {
      let batcher;
      let spark;

      beforeEach(() => {
        spark = new MockSpark({
          children: {
            avatar: Avatar
          }
        });

        spark.config.avatar = config.avatar;
        batcher = spark.avatar.batcher;
        console.warn(JSON.stringify(spark, null, `\t`));
      });

      describe(`#fingerprintRequest(item)`, () => {
        it(`returns 'uuid - size'`, () => {
          assert.equal(batcher.fingerprintRequest({uuid: `uuid1`, size: 80}), `uuid1 - 80`);
        });
      });
    });
  });
});

@@ -140,18 +140,8 @@
 atar
-, %7Bconfig%7D
  fro
@@ -156,59 +156,15 @@
 /';%0A
-// 
 import 
-'@ciscospark/test-helper-sinon';%0Aimport %7B
 Mock
@@ -168,17 +168,16 @@
 ockSpark
-%7D
  from '@
@@ -479,25 +479,24 @@
     %7D);%0A
-%0A
         
 spark.co
@@ -491,140 +491,102 @@
     
-spark.config.avatar = config.avatar;%0A        batcher = spark.avatar.batcher;%0A        console.warn(JSON.stringify(spark, null, %60%5Ct%60))
+console.warn('spark: %3C' + JSON.stringify(spark) + '%3E');%0A        batcher = spark.avatar.batcher
 ;%0A  

Refactor ciscospark Migrate Avatar to packages