"use strict";

var utils = require('./../utils');

module.exports = function formatYate(date) {
  if (!date || arguments.length === 1) {
    date = new Date();
  } else {
    date = new Date(date);

    if (!utils.is.date(date)) {
      throw new Error('Invalid date');
    }
  }

  return date.getFullYear();
};
@@ -77,19 +77,19 @@
  formatY
-ate
+ear
 (date) %7B

Fix function name