Skip to content

Commit

Permalink
Merge pull request #1169 from Automattic/fix_tests_emoji_script_issue
Browse files Browse the repository at this point in the history
Fix requiring wp-emoji script in tests.
  • Loading branch information
westonruter committed May 23, 2018
2 parents 2435b18 + 51cda2f commit 0efcc83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/amp-editor-blocks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* exported ampEditorBlocks */
/* eslint no-magic-numbers: [ "error", { "ignore": [ 1, -1, 0 ] } ] */

var ampEditorBlocks = ( function() {
var ampEditorBlocks = ( function() { // eslint-disable-line no-unused-vars
var component, __;

__ = wp.i18n.__;
Expand Down
1 change: 1 addition & 0 deletions tests/test-class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,7 @@ public function test_prepare_response_bad_html() {
public function test_prepare_response_to_add_html5_doctype_and_amp_attribute() {
add_theme_support( 'amp' );
AMP_Theme_Support::init();
AMP_Theme_Support::add_hooks();
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Expand Down

0 comments on commit 0efcc83

Please sign in to comment.