<commit_before>'use strict';

describe('faCanvasSurface', function() {
  var common, element, $compile, $scope, $famous, CanvasSurface;

  beforeEach(module('famous.angular'));

  beforeEach(inject(function(_$compile_, _$rootScope_, _$famous_) {
    $compile = _$compile_;
    $scope = _$rootScope_.$new();
    $famous = _$famous_;

    common = window.famousAngularCommon($scope, $compile);
    CanvasSurface = $famous['famous/surfaces/CanvasSurface'];
  }));

  it("should create an instance of Famo.us CanvasSurface", function() {
    var faCanvasSurface = $compile('<fa-canvas-surface></fa-canvas-surface>')($scope);
    var canvasSurface = common.getIsolateFromElement(faCanvasSurface).renderNode;
    expect(typeof canvasSurface).toBe('object');
    expect(canvasSurface instanceof CanvasSurface).toBe(true);
  });


  it("should throw an exception if any child content is added", function(){
    pending();
    expect(function(){
      var faCanvasSurface = $compile('<fa-canvas-surface>illegal content</fa-canvas-surface>')($scope);
    }).toThrow();
  });

});
<commit_msg>test: implement pending test for fa-canvas-surface<commit_after>'use strict';

describe('faCanvasSurface', function() {
  var common, element, $compile, $scope, $famous, CanvasSurface;

  beforeEach(module('famous.angular'));

  beforeEach(inject(function(_$compile_, _$rootScope_, _$famous_) {
    $compile = _$compile_;
    $scope = _$rootScope_.$new();
    $famous = _$famous_;

    common = window.famousAngularCommon($scope, $compile);
    CanvasSurface = $famous['famous/surfaces/CanvasSurface'];
  }));

  it("should create an instance of Famo.us CanvasSurface", function() {
    var faCanvasSurface = $compile('<fa-canvas-surface></fa-canvas-surface>')($scope);
    var canvasSurface = common.getIsolateFromElement(faCanvasSurface).renderNode;
    expect(typeof canvasSurface).toBe('object');
    expect(canvasSurface instanceof CanvasSurface).toBe(true);
  });


  it("should throw an exception if any child content is added", function(){
    expect(function(){
      var faCanvasSurface = $compile('<fa-canvas-surface><fa-view id="illegal"></fa-view></fa-canvas-surface>')($scope);
    }).toThrow();
  });

});

{'fraction_non_alphanumeric': 0.16068996822514753, 'fraction_numerical': 0.0, 'mean_word_length': 5.122222222222222, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1352959', 'n_tokens_mistral': 663, 'n_tokens_neox': 648, 'n_words': 130}