Macbook air keeps shutting down
My macbook air 13 inch (2013) shuts down every time I try to use it when it is unplugged. When I try to run a diagonostics test by restarting and holding down the D key the screen just goes black and says either "shut down" or "restart"
MacBook Air, OS X Yosemite (10.10.2), 2013