text: ﻿describe("when converting specifying type and supporting converter for type", function () {
  
      var convertedValue = 42;
      var typeConverter = {
          supportedType: Number,
          convertFrom: sinon.stub().returns(convertedValue)
      };
      var typeConverterType = { create: function () { return typeConverter; } }
      var typeConverterBefore = null;
      var converted = null;
      beforeEach(function () {
         
          typeConverterBefore = Dolittle.values.TypeConverter;
          Dolittle.values.TypeConverter = {
              getExtenders: function () {
                  return [typeConverterType]
              }
          };
  
          var typeConverters = Dolittle.values.typeConverters.createWithoutScope();
          converted = typeConverters.convertFrom("42", Number);
      });
  
      afterEach(function () {
          Dolittle.views.TypeConverter = typeConverterBefore;
      });
  
      it("should return the converted value from the converter", function () {
          expect(converted).toBe(convertedValue);
      });
  });